Skip to content Skip to sidebar Skip to footer

Need Help - Replacing Div Content With Data From Db Without Refresh (using - Jquery, Hmlhttp, Ci)

Here I go again. I am trying to change content of a division with data retrieved from my database. This has to be done without reloading the page, therefore I am using xmlhttp and

Solution 1:

You're not concatenating the get parameter properly.

xmlhttp.open("GET","getnext5.php?q="true);

q="true <-- true is a boolean!

Try opening like this:

xmlhttp.open("GET","getnext5.php?q=true");

If you do want to concatenate proper, do "q="+variable

Solution 2:

You can use jquery ajax api, and then on success function you can replace div content with values retrieved from db.

Post a Comment for "Need Help - Replacing Div Content With Data From Db Without Refresh (using - Jquery, Hmlhttp, Ci)"