automatic refresh changes focus to another browser window

T

Tim Charnley

I have a situation where 25 machines use IE to connect to
a java application running on a Linux machine. Upon using
the application it will launch a new browser window as
they navigate various screens. This is normal. The
application is set to refresh every 10 minutes (I am not
sure how this is implemented). Under normal circumstances
it should just refresh the screen regardless of which
browser window is open. However, on one PC when the
refresh occurs then the machine switches focus from
whatever application currently had focus to the browser
window that is now refreshing.

The problem is that if I was typing in Browser A and
Browser B decides to "refresh" I now am typing in Browser
B when this screen gains focus.

It is normal for the users to have sometimes as many as 10
open browsers. Sometimes these are started within seconds
of each other. You can see that this can become quite
annoying if all 10 browsers change focus as your using the
application.

My question is. Does anyone know of a setting in Internet
Explorer that would control the behaviour of changing
focus upon a refresh?

I found several hits on "META REFRESH" but I am not sure
if this is the method the java application is using to
automatically refresh the application. I will find this
out next week.

Thanks, in advance, for your time and suggestions.

Tim Charnley
(e-mail address removed)
 
T

Tim Charnley

I've confirmed the META REFRESH tag exists here is the
line of HTML code:

<meta http-equiv=refresh content=600>

So my question to all you developers out there is:

Is there a behaviour change with how IE handles this tag
that would cause the focus to change depending on IE
settings?

I already know about the Enable / Disable option in the IE
Content screen and I'm following up with where its current
setting is.

But I'm looking for specifically a setting that affects
focus changes.

Thanks, in advance,

Tim Charnley
 
T

Tim Charnley

Here is some additional code: Right after the meta
refresh tag is this line:

</HEAD><body onLoad='javaload("drorecno");'
onUnload='javaunload()';><style type='text/css'>

So here is the javaload code:

function javaload(Cooknam) {
var Cookstr=document.cookie;
var Cookset=Cookstr.split (";");
var Setsize=Cookset.length;
//alert(Setsize)
var Cookpcs
var RtrnVal="";
var x=0

for (x=0; ((x < Setsize) && (RtrnVal=="")); x++){
Cookpcs=Cookset[x].split ("=");
if (Cookpcs[0].substring (0,1) == " ") {
Cookpcs[0] = Cookpcs[0].substring(1,Cookpcs
[0].length);
}
if (Cookpcs[0] == Cooknam) {
RtrnVal=Cookpcs[1]
//alert(RtrnVal)
logupd.recno[RtrnVal].focus();
logupd.recno[RtrnVal].checked=true;
}
}
}
function javaunload() {
var Cooknam="drolstcook";
var Cooknam2="drorecno";
var Cookstr=document.cookie;
var Cookset=Cookstr.split (";");
var Setsize=Cookset.length;
var Cookpcs="";
var RtrnVal="";
var SetVal="";
var x=0

for (x=0; x < Setsize; x++){
Cookpcs=Cookset[x].split ("=");
if (Cookpcs[0].substring (0,1) == " ") {
Cookpcs[0] = Cookpcs[0].substring(1,Cookpcs
[0].length);
}
if (Cookpcs[0] == Cooknam) {
SetVal=Cookpcs[1];
}
if (Cookpcs[0] == Cooknam2) {
RtrnVal=Cookpcs[1];
}
}
Is it possible that this line is causing the problem and
if so why would one version of IE behave differently than
another?

logupd.recno[RtrnVal].focus();

The way I read this is that it should change the focus of
the cursor not the entire browser.

Tim Charnley
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top