Click here to Skip to main content
15,894,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear Friends,

I am Displaying few data in a DIV tag and the data gets updated often.
Right now I am refreshing the whole page and displaying the updated data.

But i just want only the DIV tag content to be reloaded.
Can any one help me on this.

Regards,
AP
Posted

1 solution

You can achieve it using AJAX. Tradition Javascript based or jQuery.

Using tradition AJAX - XMLHttpRequest, have a look at these:
XMLHttpRequest Object[^]
XMLHTTPRequest with Sample[^]
Using the XML HTTP Request object[^]

Using the jQuery based AJAX, have a look at these:
http://api.jquery.com/jQuery.ajax/[^]
http://api.jquery.com/category/ajax/[^]
http://www.w3schools.com/jquery/jquery_ref_ajax.asp[^]
 
Share this answer
 

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