473,769 Members | 3,820 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

refresh without Focus

Hi
I have an application with numerous pages. A couple of these pages
include a functionality that allows it to be refreshed every 15 secs.
My problem is that this "refreshing " works too well: THe page that is
refreshed always comes into focus even when I'm using another page. I
was wondering whether there is a way for the page with the refreshed
functionality to remain in the background.
I thank you all in advance for any suggestions. My constraint is that
the solution must only be php and/or javascript.
Kind regards
Bilal
Jul 20 '05 #1
8 5170
Bilal wrote:
Hi
I have an application with numerous pages. A couple of these pages
include a functionality that allows it to be refreshed every 15 secs.
My problem is that this "refreshing " works too well: THe page that is
refreshed always comes into focus even when I'm using another page. I
was wondering whether there is a way for the page with the refreshed
functionality to remain in the background.
I thank you all in advance for any suggestions. My constraint is that
the solution must only be php and/or javascript.
Kind regards
Bilal


Hi,

What you describe doesn't happen in my situation.
(Linux RH8 with Mozilla1.4.1)

I tested the following script:

<html>
<head>
<script type="text/javascript">
setTimeout("doc ument.location= 'test.php'" , 2000);
</script>
</head>
<body>
I refresh myself every 2 seconds.
</body>
</html>
Jul 20 '05 #2
This is not what php can do because php is server side, it is javascript
related.
use this js function after your refresh
self.blur();

Savut

"Bilal" <bj****@hotmail .com> wrote in message
news:f9******** *************** ***@posting.goo gle.com...
Hi
I have an application with numerous pages. A couple of these pages
include a functionality that allows it to be refreshed every 15 secs.
My problem is that this "refreshing " works too well: THe page that is
refreshed always comes into focus even when I'm using another page. I
was wondering whether there is a way for the page with the refreshed
functionality to remain in the background.
I thank you all in advance for any suggestions. My constraint is that
the solution must only be php and/or javascript.
Kind regards
Bilal


Jul 20 '05 #3
In article <f9************ **************@ posting.google. com>,
bj****@hotmail. com enlightened us with...
Hi
I have an application with numerous pages. A couple of these pages
include a functionality that allows it to be refreshed every 15 secs.
My problem is that this "refreshing " works too well: THe page that is
refreshed always comes into focus even when I'm using another page. I
was wondering whether there is a way for the page with the refreshed
functionality to remain in the background.

I don't have this problem with my refreshing window.
Got URL?

--
--
~kaeli~
Dancing cheek-to-cheek is really a form of floor play.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #4
The problem is browsers handle the refresh differently. Even Mozilla didn't
focus the window after a refresh, it's not for all browsers, the best it to
add code to handle it.

Savut

"Erwin Moller"
<si************ *************** *************** @spamyourself.c om> wrote in
message news:40******** *************@n ews.xs4all.nl.. .
Bilal wrote:
Hi
I have an application with numerous pages. A couple of these pages
include a functionality that allows it to be refreshed every 15 secs.
My problem is that this "refreshing " works too well: THe page that is
refreshed always comes into focus even when I'm using another page. I
was wondering whether there is a way for the page with the refreshed
functionality to remain in the background.
I thank you all in advance for any suggestions. My constraint is that
the solution must only be php and/or javascript.
Kind regards
Bilal


Hi,

What you describe doesn't happen in my situation.
(Linux RH8 with Mozilla1.4.1)

I tested the following script:

<html>
<head>
<script type="text/javascript">
setTimeout("doc ument.location= 'test.php'" , 2000);
</script>
</head>
<body>
I refresh myself every 2 seconds.
</body>
</html>


Jul 20 '05 #5
> bj****@hotmail. com enlightened us with...
Hi
I have an application with numerous pages. A couple of these pages
include a functionality that allows it to be refreshed every 15 secs.
My problem is that this "refreshing " works too well: THe page that is
refreshed always comes into focus even when I'm using another page. I
was wondering whether there is a way for the page with the refreshed
functionality to remain in the background.

Hello everyone,
THis is the function I'm using:
function refreshPage(){
document.form_a ffichage.action =myPage.php';
document.form_a ffichage.submit ();
//document.form_a ffichage.blur() ; --> did not work!!
}
timeout = <?php echo $period;?> * 1000;
window.setTimeo ut("refreshPage ();",timeout);
The browser I'm compelled to use is Internet Explorer vers 6.
Unfortunately I have not got a URL yet. Thank you again for any help.
Cheers
Bilal
Jul 20 '05 #6
In article <f9************ **************@ posting.google. com>,
bj****@hotmail. com enlightened us with...


Hello everyone,
THis is the function I'm using:
function refreshPage(){
document.form_a ffichage.action =myPage.php';
Is that a typo? Having only one quote would basically putz up the whole
rest of the code.
document.form_a ffichage.submit ();
//document.form_a ffichage.blur() ; --> did not work!!
}
timeout = <?php echo $period;?> * 1000;
window.setTimeo ut("refreshPage ();",timeout);
The browser I'm compelled to use is Internet Explorer vers 6.


Now, what happens? Another IE window is open, but this window comes into
focus when it refreshes?
Because I put this into a test page and had no problems. It remained in
the background as expected.

My test page:

<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
</head>

<body>
<script>
function refreshPage(){
document.form1. submit();
}
timeout = 5 * 1000;
window.setTimeo ut("refreshPage ();",timeout);
</script>

test page
<form name="form1">
<input type="text" name="text1"><b r>
<input type="hidden" name="hidden1" value="nothing" >
</form>
</body>
</html>

--
--
~kaeli~
Murphy's Law #3020: Quality assurance doesn't.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #7
your syntax is incorrect.
use self.blur(); or windowname.blur ()

Savut

"Bilal" <bj****@hotmail .com> wrote in message
news:f9******** *************** ***@posting.goo gle.com...
bj****@hotmail. com enlightened us with...
Hi
I have an application with numerous pages. A couple of these pages
include a functionality that allows it to be refreshed every 15 secs.
My problem is that this "refreshing " works too well: THe page that is
refreshed always comes into focus even when I'm using another page. I
was wondering whether there is a way for the page with the refreshed
functionality to remain in the background.

Hello everyone,
THis is the function I'm using:
function refreshPage(){
document.form_a ffichage.action =myPage.php';
document.form_a ffichage.submit ();
//document.form_a ffichage.blur() ; --> did not work!!
}
timeout = <?php echo $period;?> * 1000;
window.setTimeo ut("refreshPage ();",timeout);
The browser I'm compelled to use is Internet Explorer vers 6.
Unfortunately I have not got a URL yet. Thank you again for any help.
Cheers
Bilal


Jul 20 '05 #8
Savut wrote:
This is not what php can do because php is server side,
No, PHP is not restricted to server-side applications, but it is mostly
used server-side. If there were a user agent that had a built-in PHP
parser or could make use of an external PHP parser, and if there were a
PHP module for client-side scripting, there were no problem using PHP
for this task.
it is javascript related.
But not because JavaScript would be restricted to client-side
applications but because it is mostly used client-side.
[Top post]


Please do not do that.
F'up2 cljs

PointedEars
Jul 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1970
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....
43
16087
by: dan baker | last post by:
I have a page that gets loaded with a meta-refresh hardcoded so that a few things on the page get updated. its kind of a fake chat board. anyway, what I need to do is turn off the meta-refresh once someone clicks in a <textarea> to enter their input; otherwise the refresh catches them in the middle and messes up the focus. I need a way to turn off the meta-refresh, or to force the cursor/focus to stay in the message input box once they...
14
11264
by: Shiperton Henethe | last post by:
Hi Is there anyway to get a meta refresh to do so in an new browser window? e.g. This code forwards this user after 8 seconds... <meta http-equiv=refresh content=8;url=http://www.auction-air.com/index.html> Is it possible to do so but in a new window, ideally one without focus - i.e. a "pop under" but only do so after a number of seconds...
4
647
by: Alejandro Narancio | last post by:
Hi, i have this situation. One page open another page in a separated instance of the browser, i neek to refresh every five minutes the first page but without take the focus, anybody know how can i do that? I wanna try to explain with an example, i have to pages A.html and B.html, the page A open the page B in a separated intance of the browser, i need to refresh the page A every five minute. Actually i doing with the setTimeout...
0
1682
by: Brad White | last post by:
Overview: I have a custom web app that has an 'Inbox' that refreshes every 30 seconds. One user uses Outlook to host the web page. Using IE, the refresh works fine. If the user is working in another window, the web page quietly refreshes in the background. Hosted in Outlook, the refresh causes Outlook to come to the front on every refresh. Or in XP, causes the toolbar icon to flash.
5
3691
by: jobi | last post by:
Hi, I'm trying to develop this vb.net application which gathers info. When I start the gathering process, I refresh text-fields in the form to see progress and to see where it gets. This works fine as long as the application has the focus. When I start an other application or switch to an other application (e.g. taskmanager, outlook), the form-refresh of my application stops. When I put the focus back to my application, the form...
2
2673
by: AA | last post by:
Do anyone know how to refresh the datagrid without setting datasource to nothing and initialize the grid again? My case is that I have form consisting from two part. The upper part is a datagrid while the lower is the record detail. Once user, said selected/hightlighted row 3 for editing the detail info. Then, user click "Save". I want the datagrid to be refreshed so as to displaying the latest changes of the record info without moving...
13
3676
by: steven | last post by:
A monthcalendar checks every 2 minutes if theres a new day. Does anyone knows how to disable this ? The problem is that, everytime a monthcalendar checks this, the form where the monhcalendar is on, gets the focus, which is VERY annoying. Thanks, Steven
5
8627
by: mattcolenutt | last post by:
Scenario: Have a product form with an "image location" field. The image property uses this field to display the image. Problem: If an image location field has been changed, the image will not refresh, even after putting a "refresh", or "repaint" or "requery" statement in the afterupdate event. The only way to make it update is to move to the next record and then move back again. Private Sub Stock_ImageLocation_AfterUpdate()
0
9579
marktang
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...
0
10205
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
jinu1996
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...
0
8863
agi2029
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...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3949
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
2
3556
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2811
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.