# EmptyRequestCallback Function

> Callback function for empty requests. Notifies the caller about the completion of an operation that does not return a value.

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

---

### Description

Callback function for empty requests. Notifies the caller about the completion of an operation that does not return a value.

### Syntax

```javascript
function()
```

### Examples

The following example demonstrates `EmptyRequestCallback` in a practical document-editing workflow. Callback function for empty requests. Notifies the caller about the completion of an operation that does not return a value.

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

function emptyRequestCallback() {
    console.log("The asynchronous editor operation completed.");
}

TXTextControl.textParts.getMainText(function(mainText) {
    const applicationFields = mainText.applicationFields;
    applicationFields.getItem(function(applicationField) {
        if (!applicationField) {
            console.warn("No application field is available at the current input position.");
            return;
        }
    
        applicationField.setFormat(TXTextControl.ApplicationFieldFormat.MSWord, emptyRequestCallback);
    }, onTxError);
}, onTxError);
```

---

## Nearby

- **Previous:** [Javascript: EmbeddedFileCollection.removeElementAt Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/embeddedfilecollection/removeelementat-method/llms-full.txt)
- **Next:** [ErrorArgument Object](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/errorargument/llms-full.txt)
