Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
IE
ie55.activexcontrol
ie55.add_ons
ie55.browser
ie55.com.codedownload
ie55.css
ie55.databinding
ie55.dhtml
ie55.dhtml.authoring
ie55.dhtml.behaviors
ie55.dhtml.scripting
ie55.icw
ie55.misc
ie55.multimedia
ie55.oe.stationery
ie55.outlookexpress
ie55.programming
ie55.setup
ie55.webbrowser_ctl
ie6.browser
ie6.ieak
ie6.oe.wishlist
ie6.setup
ie6_oe.stationery
ie6_outlookexpress
  
 
date: Tue, 22 Mar 2005 14:44:38 +0100,    group: microsoft.public.windows.inetexplorer.ie55.programming.dhtml        back       


document.write prevents from submitting a form   
Hello,

can you please consider this html page:

<html>
<head>
<script language="JavaScript">
function openwin(){
window.document.write('wait..');
}
</script>
</head>
<body>
<form name="AForm" action="page2.htm" method="POST" onSubmit="openwin();">
          <span><input type="Submit" class="defaultBtn"
value="Proceed"></span>
 </form>
</body>
</html>

If i click on the 'proceed' button, the browser reacts different ways
depending it's on IE5.0 or IE6.0:
- on IE5.0, page2.htm is displayed, and that is what i want
- on IE6.0, the process stops after 'window.document.write('wait..');'
function.

My question is: how to get IE6.0 the same behavior as IE5.0?

Thank's for your help
Didier
date: Tue, 22 Mar 2005 14:44:38 +0100   author:   Didier Cabal

Re: document.write prevents from submitting a form   
I couldnt understand what you wish to do?
inside the "form" element you can use submit but if i wish to catch all
control on a form and related functions i write a extra function that
..submit the form and opens the window together, or open the window via
function and control the form from new window via .opener.
Let you tell what the logic of your try? What do you wish to do with
this form?
date: 5 Apr 2005 11:47:58 -0700   author:   caglaror

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us