How to load jquery Datatables into div with ajax call?

Probably, the liveQuery plugin could help in that case.

Probably, the liveQuery plugin could help in that case. Live Query utilizes the power of jQuery selectors by binding events or firing callbacks for matched elements auto-magically, even after the page has been loaded and the DOM updated.

– Nik Nov 3 '10 at 7:43 @Nik: The live() doesn't support plugins' cutom events/methods. – Sarfraz Nov 3 '10 at 7:46 Hei. I figured it out.

It was much simpler. I just had to put datatables code after filling result div like that: $. Post(url, posts, function(data){ $("#results").empty().

Append(data); $('. Datatables').dataTable(); }); – Bob0101 Nov 3 '10 at 7:48 @Bob0101: That's good news :) +1 for that. – Sarfraz Nov 3 '10 at 7:49.

$(function(){ $. Get("script. Php",function(data){ $.

Each(data. Items, function(i,item){ $("#anydiv"). Prepend(item.

Element); }); }) }) In script. Php read array of database results into array and : echo json_encode($results_array).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions