In general, such a thing, I load the label on ajax, the data in the usual html, stupidly pick it up and add it to the end of the necessary block. Depending on the transmitted GET parameters, I generate the necessary data. But here's the problem: loading is not what you need! Those. the data generated on the page does not coincide with the fact that ajax picks up! I checked it quite simply: I go to the page from where I load the Ajax and compare it.
Below is an example script:
$.ajax({ type: "GET", url: "/load_videos/", data: tst, dataType: "html", cache: false, success: function(data){ $("#table-div").append(data); } });
Where "tst" is the passed parameters (the usual string of a GET request).
In the usual handler hangs, I think it makes no sense to show it. Where to dig, that where might be wrong? It is interesting that when an empty GET request is received, there are no problems, it loads correctly.