Hi,
I'm a complete beginner in Javascript and php ... so forgive me for
asking an easy/simple solution to the following problem:
I'm developing an application that involves multi-screen in different
windows. One of my windows involves an automatic refresh every 99 sec.
The problem is that the window is coming into focus each time the
refresh occurs. How can I prevent this from happening? Thank you in
advance for any suggestions.
Implementation of refresh as follows:
_______________ _____________
function refreshPage(){
query4 = "<?php echo $_GET['query4']?>";
window.location .href = "fluxOT_frame.p hp?page_id=0&qu ery4=" + query4 +
"&services=<?ph p echo $service?>&go_a head=1&code_er= <?php echo
$cod_er?>&code_ appli=<?php echo $code_app?>&per iode=<?php echo
$period?>";
}
timeout = <?php echo $period;?> * 1000; // where period = 99
window.setTimeo ut("refreshPage ();",timeout);
_______________ _____________
Kind regards
Bils
I'm a complete beginner in Javascript and php ... so forgive me for
asking an easy/simple solution to the following problem:
I'm developing an application that involves multi-screen in different
windows. One of my windows involves an automatic refresh every 99 sec.
The problem is that the window is coming into focus each time the
refresh occurs. How can I prevent this from happening? Thank you in
advance for any suggestions.
Implementation of refresh as follows:
_______________ _____________
function refreshPage(){
query4 = "<?php echo $_GET['query4']?>";
window.location .href = "fluxOT_frame.p hp?page_id=0&qu ery4=" + query4 +
"&services=<?ph p echo $service?>&go_a head=1&code_er= <?php echo
$cod_er?>&code_ appli=<?php echo $code_app?>&per iode=<?php echo
$period?>";
}
timeout = <?php echo $period;?> * 1000; // where period = 99
window.setTimeo ut("refreshPage ();",timeout);
_______________ _____________
Kind regards
Bils
Comment