# RequestPointCallback Function

> Callback function for requests expecting a Point object.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Function
- **Path:** DS Server > Reference > JavaScript API > RequestPointCallback Function
- **262 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/requestpointcallback/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/requestpointcallback/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/requestpointcallback/llms-full.txt

---

### Description

Callback function for requests expecting a [Point](https://docs.textcontrol.com/ds-server/reference/javascript/point/llms-full.txt) object.

### Syntax

```javascript
function(<Point> position)
```

### Examples

The following example demonstrates `RequestPointCallback` in a practical document-editing workflow. Callback function for requests expecting a Point object.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function requestPointCallback(position) {
    console.log("position:", position);
}

function useRequestPointCallback(frameBase) {
    frameBase.getLocation(requestPointCallback, onTxError);
}
```

---

## Nearby

- **Previous:** [RequestPermanentControlCharsCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/requestpermanentcontrolcharscallback/llms-full.txt)
- **Next:** [RequestRectangleCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/requestrectanglecallback/llms-full.txt)
