|
-
October 15th, 2009, 04:40 PM
#3
Re: Save real-time data in client PC
you already have the data saved on the client machine in the textbox where it is displayed... all you need to do is make sure it doesnt reload for 10 seconds... like this:
call "ReloadTextVal()" on the page load... you can do this by placing onload="javascript:ReloadTextVal();" as an attribute in the <body> tag. Each time the function finishes running it will set a timeout to be called again in 10 seconds...
function ReloadTextVal()
{
///put your
/// ajax call
/// code here...
//call this function again in 10 seconds
window.setTimeout("ReloadTextVal()",10000);
}
function AjaxResponseCall()
{
document.all.TEXTBOX_FIELD.value="VALUE RETRIEVED BY AJAX";
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|