I fulfill the request:
$.pjax({url: '/message/addmsg?text=&to_id=0', container: '#mesagerightchat',"push":true,"timeout":0}); and the text that returns action appears in the container. But I do not need to update the container, I need to get data from pjax, without updating the container and process it myself and insert it myself.
There is such an event:
$(document).on('pjax:success', function(data, status, xhr, options) { }); What is the variable data? Well, in general, you can read somewhere that return events Pjax?
Well, here in this event:
$(document).on('pjax:beforeReplace',function(contents, options){ return false; }); In theory, if you return false, then the update should fail.
And how to get what the event returns?
pjax? - doox911