I created a global handler for ajaxSuccess, but I need to be able to examine the data for each request. Is it possible to access the returned data at this point?
ajaxSuccess
jQuery(document).ajaxSuccess(function(event, request, options) { // i can has the datas? >^..^< });
This works in FF, Chrome, IE 8:
jQuery(document).ajaxSuccess(function(event, request, options) { if (options.dataType == 'json') { var data = JSON.parse(request.responseText); // i has the datas! } });
jQuery(document).ajaxSuccess(function(event, request, options, data) { console.log(data); });
Source: https://habr.com/ru/post/1739664/More articles:Can I filter a django model using a python list? - pythonProblems using the Google Maps API - javaConverting C # void * to Byte [] - pointersIs there a library for .NET that does brackets or expression reduction and optimization? - .netProblems with Date, readyStatement, JDBC and PostgreSQL - javaКак получить двоичный файл из сборки .NET? - c#ссылки в С++ - c++Python output alternatives - pythonMemory in Eclipse - heapBlackBerry deployment and release - deploymentAll Articles