Click here to Skip to main content
15,909,498 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey guys,
I have a webside with lots of table rows and
<td>
's.
But how can I reload a .php part in one
<td>
without reload the whole side?
Posted

I would use AJAX, and specifically I would use jQuery to make AJAX simpler. You don't have to use jQuery though. The strategy is:


  1. Give the <td> you want to update a unique ID.
  2. Respond to a click event on a button labeled "Update". Respond to this event with jQuery.
  3. Use jQuery to call the php script on the remote server.
  4. Using jQuery, update the HTML of the <td> using the ID you created in step 1.


Using load() in the first example in this tutorial is probably a good place to start:

5 ways to make AJAX calls with jQuery
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 14-Jan-13 0:09am    
Nice answer; and using jQuery is a good idea; a 5.
—SA
Chi Ller 18-Jan-13 9:17am    
ok i`m gonna try it (: if hope it works
Use Iframes for that part and refresh that..

iframe Tag[^]
 
Share this answer
 
Comments
Chi Ller 18-Jan-13 9:16am    
iframes making much problems

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900