Plugin to send and retrieve data to a from a serve using Ajax methods.

Version: 1.3


Description

The neoAjax plugin for VisualNEO Web enables seamless data exchange with external servers using AJAX (Asynchronous JavaScript and XML), allowing applications to load or send data without reloading the page. This plugin is ideal for adding dynamic, real-time content and interacting with APIs. Here are its primary functionalities:

    • Data Loading and Retrieval:
      • neoAjaxLoad allows developers to load data from a specified URL and handle the response in a subroutine. It supports multiple data types, such as JSON, XML, or text, making it flexible for different web service responses.
      • For requests requiring headers, neoAjaxLoadEx provides the capability to include custom HTTP headers in the AJAX request, useful for accessing APIs requiring authentication.
    • Data Sending:
      • neoAjaxSend enables sending data to a server, supporting both GET and POST methods, along with various data types (like JSON or text). This command is helpful for submitting forms or sending data in real-time within an application.
      • The extended command neoAjaxSendEx allows sending data along with custom headers, ideal for APIs that require specific headers (such as API keys or tokens) in each request.
    • Error and Success Handling:
      • Each AJAX command in neoAjax includes a mechanism for specifying success and error handling subroutines, allowing developers to customize the app’s response based on the result, which is crucial for user feedback and error management.


By using neoAjax, VisualNEO Web developers can enrich their applications with real-time data interactions, making it suitable for applications needing API integration, form submission, or dynamic data updates​​.

neoAjaxLoad

Purpose:

Call an API endpoint to load content using AJAX. It sends the result to a subroutine once loaded.

Category:

neoAjax

Syntax:

neoAjaxLoad theUrl theDataType successSubroutine errorSubroutine

 

theUrl

File or data URL to load

theDataType

Data type to be loaded

successSubroutine

Success subroutine

errorSubroutine

Error subroutine

 

neoAjaxLoadEx

Purpose:

Call an API endpoint to load content using AJAX and Headers. It sends the result to a subroutine once loaded.

Category:

neoAjax

Syntax:

neoAjaxLoadEx theUrl "headerObject" theDataType successSubroutine errorSubroutine

 

theUrl

File or data URL to load

headerObject

Header object variable

theDataType

Data type to be loaded

successSubroutine

Success subroutine

errorSubroutine

Error subroutine

 

neoAjaxSend

Purpose:

Call an API endpoint to send and load content using AJAX. It sends the result to a subroutine once loaded.

Category:

neoAjax

Syntax:

neoAjaxSend theUrl theMethod "theData" theDataType successSubroutine errorSubroutine

 

theUrl

URL to send data to

theMethod

Method

theData

Data object variable to send

theDataType

The type of data expected from the server

successSubroutine

Success subroutine

errorSubroutine

Error subroutine

 

neoAjaxSendEx

Purpose:

Call an API endpoint to send and load content using AJAX and Headers. It sends the result to a subroutine once loaded.

Category:

neoAjax

Syntax:

neoAjaxSendEx theUrl theMethod "headerObject" "theData" theDataType successSubroutine errorSubroutine

 

theUrl

URL to send data to

theMethod

Method

headerObject

Header object variable

theData

Data object variable to send

theDataType

The type of data expected from the server

successSubroutine

Success subroutine

errorSubroutine

Error subroutine

Created with the Personal Edition of HelpNDoc: Full-featured Kindle eBooks generator