[thelist] Problem with a form.submit() in netscape.

Chris Evans chris at fuseware.com
Tue Jun 26 09:14:55 CDT 2001


Move your document.form.submit() function into a onLoad function in your
body tag.  That will allow the page to complete loading before submitting,
making Netscape happy.


Chris Evans
chris at fuseware.com
http://www.fuseware.com



-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Damien Cola
Sent: Tuesday, June 26, 2001 9:51 AM
To: thelist at lists.evolt.org
Subject: [thelist] Problem with a form.submit() in netscape.


Hello evolters,

I have done this simple code:
<!--

<html>
<head>
<title>Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
// write the action (e.g. "test/index.php3")
// and then
// write the value of order_id (from primary key field "private_areaID")
?>
<form name="myform" method="post" action="<?php echo $destination .
"/index.php3"; ?>">
<input type="hidden" name="order_id" value="<?php echo $myID;?>">
</form>
<script language="javascript">
<!--
document.myform.submit();
// end of script -->
</script>
</body>
</html>

// -->

That works fine with IE (it seems) but on netscape we have time to see:
TRANSFERT INTERUPTED
and after that it works (that is the browser goes to the destination page)

So, I understand Netscape is more rigorous and would like the page to finish
downloading before posting the form.

But what choice do I have? I can't call my javascript after the ending /HTML
?

What do you think? is it an interesting problem or not?

Damien COLA - Synaptique
Synaptique (UK) Ltd.
Eurogate Business Park
TN24 8XW, Ashford, Kent
Tel: +44 (0)870 777 0026
Fax: +44 (0)870 777 0027
http://www.synaptique.co.uk
Offices: Ashford, Brussels, Helsinki
Milan, Montreal, Paris, Rabat, Toulouse



---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !






More information about the thelist mailing list