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 1 1970
Bilal wrote: Hi, I'm a complete beginner in Javascript and php ... so forgive me for asking an easy/simple solution to the following problem:
And to Usenet as well. It does not help your cause to post the same
message twice in a 10 minute span.
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?
You can't. To refresh it, it has to gain focus.
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);
window.blur();
will cause the page to lose focus. But it won't solve your problem
entirely, as you want focus to go back to where it was to begin with,
and determining what had focus at the time is a little more consuming.
If its in a frameset, then have each page set a variable in the frameset
and each time your page refreshes, check to see what page last had focus
and set it back.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bilal |
last post by:
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....
|
by: J P Singh |
last post by:
Hi Guys
Wonder if someone can help me with this.
I have a form where a user clicks a button which gives them a pop up windows
to allow them to add the data. The user adds the data and click save. The
pop window closes and refreshs the parent window to allow the entered data
to be displayed.
It was all working okay until couple of days back when it stopped.
|
by: Bilal |
last post by:
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....
|
by: Greg |
last post by:
I have a form that creates and updates a pound table during a postback, and
right before I submit the form I do a window.open to launch another page that
reads from the pound table which stores where the postback is (Step 1, Step
2, etc) auto refreshing every 5 seconds.
The problem I have is right after it spawns and loads originally, when it
refreshes, it waits for the original form to complete its postback before it
runs its own...
|
by: Wolfgang Kaml |
last post by:
Hello All,
I have been working on this for almost a week now and I haven't anything up
my sleeves anymore that I could test in addition or change....
Since I am not sure, if this is a Windows 2003 Server or ADO or ODBC issue,
I am posting this on all of the three newsgroups.
That's the setup:
Windows 2003 Server with IIS and ASP.NET actiavted
Access 2002 mdb file (and yes, proper rights are set on TMP paths and path,
| |
by: jan |
last post by:
I know Window.opener.refresh() does not work if two windows are from a
different domain.
Anyone a (javascript)-solution for this problem ?
tks
Jan/
|
by: martin1 |
last post by:
All,
is there window form refresh property? I try to set up window form refresh
per minute. Thanks
|
by: Jeremy |
last post by:
In other languages I've worked with, there is a way to allow an app to go
idle just long enough for its windows to refresh. Can't find this in c#. I
did find some discussion of multithreading the app, but that seems like a
bunch of work to retrofit, given that I'd have to learn how to do it. Am I
missing something?
Jeremy
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |