jQWidgets Forums

jQuery UI Widgets Forums Plugins Data Adapter Ajax Fail callback

This topic contains 3 replies, has 2 voices, and was last updated by  Hristo 7 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Ajax Fail callback #94075

    Pietervk
    Participant

    Hi,
    I known there is a loadServerData property on the dataAdapter, that allows me to do the ajax call myself:

    `loadServerData: function (serverdata, source, callback) {
    $.ajax({
    dataType: source.datatype,
    url: source.url,
    data: serverdata,
    success: function (data, status, xhr) {

    callback({ records: data.Tests, totalrecords: data.TotalRecords });
    }
    }).fail(function (jqXHr, textStatus, errorThrown) {

    };

    },`

    Actually, I just need to catch the fail function, I don’t need to have the custom Ajax call. The grid is showing a status screen and is constantly being refreshed. At some point, the user is logged out. I would like to respond to this on the client side. Do you have any suggestions for this?

    Ajax Fail callback #94120

    Hristo
    Participant
    Ajax Fail callback #94148

    Pietervk
    Participant

    Yes, I know, but I can’t find the delete post button 🙂

    Ajax Fail callback #94168

    Hristo
    Participant

    Hello Pietervk,

    I should add this because other users need to know, too.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.