I have a page where there is dynamic text and a form. I want to refresh the section containing the dynamic text. I dont want the form section to refresh.
Initially the page displays OK but on refresh anything after cfdiv is dupllicated on the screen. any ideas?
refesh_test.cfm:
%26lt;!DOCTYPE html PUBLIC ''-//W3C//DTD XHTML 1.0 Transitional//EN'' ''http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd''%26gt;
%26lt;html xmlns=''http://www.w3.org/1999/xhtml''%26gt;
%26lt;head%26gt;
%26lt;meta http-equiv=''Content-Type'' content=''text/html; charset=utf-8'' /%26gt;
%26lt;title%26gt;Untitled Document%26lt;/title%26gt;
%26lt;script%26gt;
function refreshdata() {
ColdFusion.navigate('refresh_test.cfm','testdiv');
}
%26lt;/script%26gt;
%26lt;/head%26gt;
%26lt;body onload=''window.setInterval('refreshdata()',5000)''%26gt;
%26lt;cfdiv id=''testdiv''%26gt;
%26lt;p%26gt;sample text here to be refreshed....%26lt;/p%26gt;
%26lt;/cfdiv%26gt;
%26lt;p%26gt;this form is not to be refreshed...%26lt;/p%26gt;
%26lt;form action=''post.cfm'' method=''post'' name=''test''%26gt;
%26lt;input name=''test_field'' type=''text'' /%26gt;
%26lt;input name=''submit'' type=''submit'' /%26gt;
%26lt;/form%26gt;
%26lt;/body%26gt;
%26lt;/html%26gt;
iframe
No comments:
Post a Comment