# RequestBarcodeFrameCallback Function

> Callback function for requests expecting a BarcodeFrame object.

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

---

### Description

Callback function for requests expecting a [BarcodeFrame](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/barcodeframe/llms-full.txt) object.

### Syntax

```javascript
function(<BarcodeFrame> barcodeFrame)
```

### Examples

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

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

function requestBarcodeFrameCallback(barcodeFrame) {
    console.log("barcode frame:", barcodeFrame);
}

TXTextControl.barcodes.getItem(requestBarcodeFrameCallback, onTxError, 25);
```

---

## Nearby

- **Previous:** [RequestBarcodeAlignmentCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestbarcodealignmentcallback/llms-full.txt)
- **Next:** [RequestBarcodeTextAlignmentCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestbarcodetextalignmentcallback/llms-full.txt)
