...

View Full Version : top.frames not recognized by firefox?



mogrin
12-05-2006, 09:19 PM
Heres the lowdown.
I've got an html document with two iframes.
The first iframe points to an xml document.
The second iframe points to an aspx document.

When the aspx document redirects to itself, the following javascript is executed:
top.frames["pShoutboxXML"].location.reload(true); return false;
Which tells the html document to tell the xml document(pShoutboxXML) to refresh.

It works fine in IE and my brother told me it also works in Opera.
But it does not work in firefox and I don't know why.
Any ideas?

P.S. Heres a link to the page in question:
http://csd.colstate.edu/hoffman_andrew/shoutbox/final.html
EDIT: and heres a link to the aspx form:
http://csd.colstate.edu/hoffman_andrew/shoutbox/shoutboxFORM.aspx

j9ine
12-05-2006, 10:34 PM
You need to remove the boolean argument from the reload method. You might also try it without the return false command. In some instances that may prevent the iframe from redirecting.


top.frames[0].location.reload();



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum