Problem with IE SP2 on Windows XP 2002 SP2

  • Thread starter Thread starter Sandeep
  • Start date Start date
S

Sandeep

The following piece of javascript code below works fine in
IE 6.0 on the Windows 2000 server but not on the Windows
XP 2002 SP2

var win = window.open('',targetKey,str);
if (isIE()) {
while ( transfer ) {
if (!win || win.closed || (win.document
&& win.document.forms[0]) ) {
transfer = false;
}
}
}

The above code on XP SP2 throws a javascript error
stating "DO you wish to debug". When we debug we see that
the value of the variable "win" is "undefined" in IF LOOP.
I tried to check the following link about similar problem
http://www.microsoft.com/technet/prodtechnol/winxppro/maint
ain/sp2brows.mspx#EFAA

I have put following fix

var winStandIn = window.open('',targetKey,str);
var win = winStandIn;
win = winStandIn;
if (isIE()) {
while ( transfer ) {
if ( !win || win.closed ||
(win.document && win.document.forms[0]) ) {
transfer = false;
}
}
}

I still see the same problem. :(

Any pointers on this would be appreciated.

Thanks,
Sandeep
 
var win = window.open('',targetKey,str);

This accesses About:Blank. What security zone is it in?
I have mine in Restricted just to make code like this look silly.
It means that many web applications, especially ones which
create menu systems present me with a message about
a cross-zone access attempt. It doesn't matter if I reply
Yes or No. The warning is meaningless.

I think your solution will be to create your own About_Blank.htm
which will be guaranteed to be in the Internet zone.


HTH

Robert Aldwinckle
 
Robert,
I missed one statement after the
var win = window.open('',targetKey,str);

It is
win.location=//Programatically generated URL which is a
JSP of web application

The locatiobn was not blank rather a URL to a resource
within web application.

My Security Settings for Internet Zone is MEDIUM and the
Local Intranet Zone is MEDIUM-LOW.

The pop up JSP shows sometimes in XP properly but
sometimes throws error "Permission Denied"

Thanks
Sandeep



-----Original Message-----
var win = window.open('',targetKey,str);

This accesses About:Blank. What security zone is it in?
I have mine in Restricted just to make code like this look silly.
It means that many web applications, especially ones which
create menu systems present me with a message about
a cross-zone access attempt. It doesn't matter if I reply
Yes or No. The warning is meaningless.

I think your solution will be to create your own About_Blank.htm
which will be guaranteed to be in the Internet zone.


HTH

Robert Aldwinckle
---


Sandeep said:
The following piece of javascript code below works fine in
IE 6.0 on the Windows 2000 server but not on the Windows
XP 2002 SP2

var win = window.open('',targetKey,str);
if (isIE()) {
while ( transfer ) {
if (!win || win.closed || (win.document
&& win.document.forms[0]) ) {
transfer = false;
}
}
}

The above code on XP SP2 throws a javascript error
stating "DO you wish to debug". When we debug we see that
the value of the variable "win" is "undefined" in IF LOOP.
I tried to check the following link about similar problem
http://www.microsoft.com/technet/prodtechnol/winxppro/maint
ain/sp2brows.mspx#EFAA

I have put following fix

var winStandIn = window.open('',targetKey,str);
var win = winStandIn;
win = winStandIn;
if (isIE()) {
while ( transfer ) {
if ( !win || win.closed ||
(win.document && win.document.forms[0]) ) {
transfer = false;
}
}
}

I still see the same problem. :(

Any pointers on this would be appreciated.

Thanks,
Sandeep



.
 
Sandeep said:
Robert,
I missed one statement after the
var win = window.open('',targetKey,str);

It is
win.location=//Programatically generated URL which is a
JSP of web application

The locatiobn was not blank rather a URL to a resource
within web application.

That doesn't get you out of the potential issue I mentioned.

Here is what the MSDN syntax description of that method says
about that first parameter:

sURL Optional. String that specifies the URL of the document to display.
If no URL is specified, a new window with <B>about:blank</B>
is displayed.

(emphasis from HTML source retained)

My Security Settings for Internet Zone is MEDIUM and the
Local Intranet Zone is MEDIUM-LOW.

And where is About:Blank? Try creating your own About_Blank.htm
and see if your symptom changes?

The pop up JSP shows sometimes in XP properly but
sometimes throws error "Permission Denied"

Again, I suspect a zone conflict.

BTW this is not a good newsgroup for discussing developer's
problems. Try a developer newsgroup. (E.g. via MSDN,
newsgroups, Web Development, etc.)

Thanks
Sandeep


Good luck

Robert
---
 
Back
Top