Click to See Complete Forum and Search --> : document.write broken in frames with XP SP2???


jfrancais
09-16-2004, 05:40 PM
I have a simple website javascript that I wrote that grabs a random value (a couple actually, for a random quote generator) from an array and does a document.write when the page is loaded. It works great and I have used it for a long time without problem. I recently upgraded my machine to xp sp2 and now the document.write fails when it is loaded for the first time in the frame of a site. If I right click in the frame and hit refresh, the document.write then works. If I copy the url and paste it in a browser window, it works fine. It only seems to fail when the page loaded the first time in a frame. I have the same problem on other sites. Is this a bug in XP SP2?

here is the page that fails:
http://lemonfresh.ca (framed site)

and here is the URL of the page inside the frame
http://members.shaw.ca/j.francais/lemonfresh/ (the sub frame url)

Can anyone assist?

Thanks in advance,
Jared

jfrancais
09-17-2004, 10:43 AM
Can anyone else confirm they are having the same issue?

Willy Duitt
09-17-2004, 12:53 PM
You might have some cross domain scripting problems going on...
The two links you posted are on different domains and the external javascript files are on another...

However, I did not look much further because I have yet to install SP2 to verify this... But I would not doubt they tightened cross-site scripting privledges...

.....Willy

jfrancais
09-17-2004, 12:56 PM
Actually I already isolated that is not the issue. I have moved the .js files local and still have the same issue.

Willy Duitt
09-17-2004, 01:02 PM
You can look here and see if you can spot what they may have changed which is affecting your page...

http://msdn.microsoft.com/security/default.aspx?pull=/library/en-us/dnwxp/html/xpsp2web.asp

.....Willy