get

sends a GET AJAX request to the server

promise get(string url, [object params,function callback] );
url
stringthe URL to load params
objectthe object with parameters that need sending to the server callback
functionthe callback function
promisedata "promise" object

Example

webix.ajax().get("data.php", { filter : "123" }).then(function(data){
    // response
    console.log(data.text());
});

Details

Callback

The callback function takes 3 parameters:

Return value

The method returns a promise that contains the eventual result of an Ajax request.

More information on Webix and Promiz.js usage can be found at:

See also
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.