You are here: Re: How to refresh page without prompt the "resend information...."? « PHP Programming Language « IT news, forums, messages
Re: How to refresh page without prompt the "resend information...."?

Posted by Manish on 07/17/06 05:21

I used ajax for the same feature

<script language="JavaScript">
window.onload = function(){
GetData("<?php echo $postvar1; ?>", "<?php echo $postvar2; ?>");

setInterval("GetData('<?php echo $postvar1; ?>', '<?php echo
$postvar2; ?>')", 60000)

}
</script>

if you want to change the refresh time dynamically (1 min to say 5 min)


<script language="JavaScript">
function UpdateData() {
clearInterval(dataupdate);
dataupdate = setInterval(UpdateData(),
document.getElementById("refinterval").value);

GetData("<?php echo $postvar1; ?>", "<?php echo $postvar2; ?>");
}

var dataupdate;
window.onload = function(){
GetData("<?php echo $postvar1; ?>", "<?php echo $postvar2; ?>");
dataupdate = setInterval(UpdateData(), 60000)
}
</script>

onchange of refinterval : UpdateData()



phforum wrote:
> Hi,
>
> I wrote a PHP page for user input the information to search the
> database. And the database data will update every second. I want to
> set the auto refresh to get the data from database every minute. But
> the page always display the dialog box ask me to resend the
> information. How to disable this warning message. I using POST and
> REQUEST to get the data from user input page.
>
> Thanks all

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация