DIV标签内容要重新加载 [英] DIV tag content to be reloaded
本文介绍了DIV标签内容要重新加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友,
我在DIV标签中显示的数据很少,并且数据经常更新.
现在,我正在刷新整个页面并显示更新的数据.
但是我只希望重新加载DIV标签内容.
谁能帮我这个忙.
问候,
AP
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
推荐答案
您可以使用AJAX来实现.传统基于Javascript或jQuery.
使用传统的AJAX-XMLHttpRequest,请查看以下内容:
XMLHttpRequest对象 [带有示例的XMLHTTPRequest [使用XML HTTP请求对象 [ http://api.jquery.com/jQuery.ajax/ [ http://api.jquery.com/category/ajax/ [ http://www.w3schools.com/jquery/jquery_ref_ajax.asp [
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[^]
这篇关于DIV标签内容要重新加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文