jQuery UI Widgets Forums Plugins Data Adapter Ajax monitoring for DataAdapter

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 2 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Ajax monitoring for DataAdapter #121721

    rmichel
    Participant

    Hi,

    I use PHPDebugBar and want to add the XHR objects generated by jqWidgets components to the AjaxHandler.
    In the ajax function I use in my code, I added this line :

    phpdebugbar.ajaxHandler.handle(XHR);

    I want to do the same with every jqxDataAdapter request in my application.
    Is there a way to automatically register the ajax request in the handler?

    Thanks.

    Ajax monitoring for DataAdapter #121737

    Martin
    Participant

    Hello rmichel,

    I would suggest you read our jqxDataAdapter Tutorial.

    You can check if some of the following callbacks of the data adapter is useful for you needs:

    beforeSend(jqXHR, settings): A pre-request callback function that can be used to modify the jqXHR
    loadError(jqXHR, status, error): A callback function called when the request has failed.
    downloadComplete(edata, textStatus, jqXHR): A callback function which is called if the request succeeds. The function gets passed three arguments: The data returned from the server, formatted according to the dataType parameter; a string describing the status; and the jqXHR.

    Best Regards,
    Martin Yotov

    jQWidgets team
    https://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.