New problem with Javascript and IE6

G

Guest

I am a web developer and I have a new problem with IE6. I suspect it is the
result of some recent upgrades.

I have a parent window with a form. There is a javascript function on this
page that opens a new window and submits the contents of the form to the new
window. This USED to work just fine, but now it is opening two windows. I
have not modified my code, that is why I suspect a new some upgrade to be
causing the problem.

I am posting the code below. If anyone has any ideas please let me know.

Thanks
Lisa

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<script language="JavaScript">
<!--
function OpenWindow(winURL, winName)
{
newWind = window.open(winURL, winName,
"menubar=no,resizable=yes,navigation=no,scrollbars=yes,height=400
width=550,left=50,top=200");
newWind.focus();
document.thisForm.target = winName;
document.thisForm.action = winURL;
document.thisForm.submit();

}
//-->
</script>

<form name="thisForm" method="post" action="">
<p>Val 1
<input type="text" name="textfield">
</p>
<p>Val 2
<input type="text" name="textfield2">
</p>
<p> <a href="#" onClick="OpenWindow('newwindow.cfm','test');">Click me to
submit</a></p>
</form>
</body>
</html>
 
G

Guest

Lisa - I think I may have a similar problem. I use a chat site that when you
log into the site it uses javascript to open your chat window on a separate
page. However, since I recently upgraded IE6 I can't get the page to load at
all!! I type in the address, and it seems to start to load, but then just
hangs forever and nothing happens except for a few frames load. If I clear
out my cookies and temp files I can sometimes get the main page to load, but
as soon as I log in (which prompts the java chat window to open) everything
just hangs.

No clue what to do about it though. Anyone else?

Josh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top