Click to See Complete Forum and Search --> : window won't stop reloading in firefox
MayaPT
09-20-2004, 06:03 AM
Hi,
I have a window containing an iframe, in this iframe i load a html page which has a link to open a new window, but everytime i press that button and the new window is created, the iframe won't stop reloadind, i get this hourglass icon forever until i go into the iframe and stop or reload it. anyway i could prevent this? This only happens in firefox.
Thanks for any help you can provide on this one.
David Harrison
09-20-2004, 06:46 AM
Can you show us an online example of this?
MayaPT
09-20-2004, 06:55 AM
Hi,
I'm just uploading the latest changes i made, if you check www.ponto-dot.com you should be able to see what i mean (if you use firefox ofcourse).
After getting past the intro screen you might get the browser to display the loading icon on the menu bar, if this happens it is due to a call to refresh the iframe content on the onload event.
If you head to the "Galeria" and press the link you'll see the browser loading icon again.
Thanks for your interest and i hope you can help me solve this out.
David Harrison
09-20-2004, 07:20 AM
Can you give me the exact sequence of links to click on to get this effect becauseI'm just not finding it.
And i wouldn't dream of using a browser other than Firefox. ;)
MayaPT
09-20-2004, 07:29 AM
He,
sorry if the site is very confusing. When the site loads up there should be a picture of an ocean and a boat right? click on the picture.
Then there will be a box with some stuff written and there is a line of text above that box it says "Ponto.Dot" "Elementos" "Galeria" and "Contactos" u then press "Galeria"
There will be a link on that box if you press it there will be the loading icon on the top right of the menubar. I realised that online the cursor is normal but there's the loading circle on the menubar that won't stop.
hope these indications help
David Harrison
09-20-2004, 07:33 AM
Try changing this:
PopWindow = parent.window.open("","POPUPWINDOW",flags);
to this:
PopWindow = window.open("","POPUPWINDOW",flags);
And closing all of your tags in the pop-up wouldnt hurt.
MayaPT
09-20-2004, 07:48 AM
thanks for your help lavalamp but changing the "parent.window.open" did not solve the problem and after closing the <html> tag, which i think is the only one i was missing, the result is the same.
I get this error on javascript console when i click the pop-up link
Error: uncaught exception: [Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]" nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" location: "JS frame :: chrome://browser/content/search.xml :: initialize :: line 31" data: no]
Maybe you have some idea on why i get this?
markm
05-17-2005, 06:15 PM
Just ran into a similar problem using document.write. The solution was to document.close. Here's a code sample:
<iframe></iframe>
<a href="javascript:frames[0].document.write('<html><body>text</body></html>'); javascript:frames[0].document.close();">testlink</a>
Without the 'document.close' statement, Netscape 7.1 and Firefox 1.0 both load the "text" but then continue to show the hourglass and never finish loading. Of course, it works fine in IE.
Sorry if this was obvious, but I was searching for a solution, ran across this post, and when I saw the "window.open" code I realized I hadn't tried closing!
Thus I'm posting here for the next guy to find :) ...markm