# RequestFrameCallback Function

> Callback function for requests expecting a Frame value.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Function
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > RequestFrameCallback Function
- **243 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestframecallback/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestframecallback/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestframecallback/llms-full.txt

---

### Description

Callback function for requests expecting a [Frame](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/frame-enumeration/llms-full.txt) value.

### Syntax

```javascript
function(<Frame> frame)
```

### Examples

The following example demonstrates `RequestFrameCallback` in a practical document-editing workflow. Callback function for requests expecting a Frame value.

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

function requestFrameCallback(frame) {
    console.log("frame:", frame);
}

TXTextControl.paragraphFormat.getFrame(requestFrameCallback, onTxError);
```

---

## Nearby

- **Previous:** [RequestFrameBaseCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestframebasecallback/llms-full.txt)
- **Next:** [RequestFrameInsertionModeCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestframeinsertionmodecallback/llms-full.txt)
