Discussion:
Submit form to popup opens two window in IE6
(too old to reply)
Dougie Brown
2006-01-09 14:31:03 UTC
Permalink
Hi

Not sure if this is the right group to post this, apoligies if it isn't!

On some PCs running Windows XP SP1 and IE6 the following javascript code
opens two windows. On other PCs it works as expected and only opens a single
window into which the results are posted. Both PCs are running the same
version of IE although the patches applied as reported on help about are
different.

Note this is a simple example to show this behaviour, the actual app is more
complicated!

It works fine with Firefox 1.5 on a machine with IE6 that opens the two
windows.

It looks like IE cannot find the form based on it's name and hence opens up
a new window even though the one to post to already exists.

Any ideas?

Cheers

Doug


<html>
<head>
<title>Search</title>
</head>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function postTo(formTarget,popUp){
document.all.search.target = formTarget;
if (popUp == true){
return popIt(formTarget);
}
document.all.search.submit();
}

function popIt(formTarget) {
var n = window.open('about:blank', formTarget,
'scrollbars=yes,height=350,width=650,status=no');
return true;
}

//-->
</SCRIPT>
<body>
<form name="search" action="test1.htm" method="post">
<INPUT type="submit" value="post form to popup"
onClick="postTo('form_win',true);">
</form>
</body>
</html>
Wei-Dong XU [MS]
2006-01-10 03:05:46 UTC
Permalink
Hi Doug,

Thanks for posting at the newsgroup!

Currently I cannot reproduce your issue at Windows xp sp2 and Windows
Server 2003, which only pops up one window. So for this issue, I think it
should be the problem of windows xp SP1. Since Windows xp has the lastest
service pack 2, I strongly recommend you update all the boxes into the sp2;
then please test this page.

Please feel free to let me know if you have any further question on this
issue.

Best Regards,
Wei-Dong XU
Microsoft Support
---------------------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
---------------------------------------------------------------------------
It is my pleasure to be of any assistance.
Dougie Brown
2006-01-11 16:13:03 UTC
Permalink
Thanks for the reply Wei-Dong XU.

Unfortunately I cannot upgrade to XP SP2 yet, corporate network! I have
found a support article that provides a different example to recreate the
problem, unfortunately I'm currently running later versions of the two dlls
mentioned and the registry change hasn't fixed it.

http://support.microsoft.com/kb/837247/

This hotfix isn't displayed on the help about but I do have a later
cumulative update patch installed.

Cheers

Doug
Post by Wei-Dong XU [MS]
Hi Doug,
Thanks for posting at the newsgroup!
Currently I cannot reproduce your issue at Windows xp sp2 and Windows
Server 2003, which only pops up one window. So for this issue, I think it
should be the problem of windows xp SP1. Since Windows xp has the lastest
service pack 2, I strongly recommend you update all the boxes into the sp2;
then please test this page.
Please feel free to let me know if you have any further question on this
issue.
Best Regards,
Wei-Dong XU
Microsoft Support
---------------------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
---------------------------------------------------------------------------
It is my pleasure to be of any assistance.
Wei-Dong XU [MS]
2006-01-12 05:40:41 UTC
Permalink
Hi Doug,

Thanks for the replying and these information!

Currently I think we have no any good resolution on this. Though I hope you
could upgrade to XP sp2 and then see whether IE6 could resolve this issue,
due to the corp net restriction, I have to suggest please use Friefox to
avoid this issue at your environment.

Have a nice day!

Best Regards,
Wei-Dong XU
Microsoft Support
---------------------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
---------------------------------------------------------------------------
It is my pleasure to be of any assistance.

Loading...