javascript/html popup crash firefox?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

javascript/html popup crash firefox?

From: Alex <@>
Date: Thu Jul 28 2005 - 09:45:39 CEST

Hi,

I'm having some trouble implementing a popup in firefox. I attached some
simplified code at the bottom. This is part of a firefox extension. What
happens is that a popup window is created, the popup window updates it's
data depending on what is shown on the main window. The problem comes when i
click the 'X' to close the popup window. it crashes firefox, and closes all
firefox windows. can somebody help me with this? why does this happen? I'm
99% sure the error comes from the form in the html code.

thanks! for any help.

window.getNode = function (t)
{//stuff}

window.printNode = function (node)
{//stuff}

window.updateWindow = function (num, tag, inner) {
 outputWindow.document.outputForm.nodeNum.value = num;
 outputWindow.document.outputForm.nodeTag.value = tag;
 outputWindow.document.outputForm.innerHTML.value = inner;
}

//popup
window.outputWindow = window.open('', 'outwindow', 'width=500,height=500');

//add contents to window
outputWindow.document.write("<html><body><form name='outputForm'>Node
number:<input type=text size=20 name='nodeNum' value=''><br>Node tag:<input
type=text size=10 name='nodeTag' value=''><br>Inner HTML:<input type=text
size=50 name='innerHTML' value=''></form></body></html>");

document.onmouseover = getNode;
Received on Tue Oct 18 03:02:46 2005