form.submit on Netscape doesn't works

JavaScript and client side scripting.

Moderator: General Moderators

User avatar
johnperkins21
Forum Contributor
Posts: 140
Joined: Mon Oct 27, 2003 4:57 pm

Post by johnperkins21 »

Have you tried:

Code: Select all

this.document.frm_order.submit();
Give that one a shot.
wizzard
Forum Commoner
Posts: 93
Joined: Thu May 16, 2002 5:36 am
Location: Belgium
Contact:

Post by wizzard »

I have tryed but still the same :s very strange
User avatar
johnperkins21
Forum Contributor
Posts: 140
Joined: Mon Oct 27, 2003 4:57 pm

Post by johnperkins21 »

johnperkins21 wrote:Have you tried:

Code: Select all

this.document.frm_order.submit();
Give that one a shot.
Works for me in Firefox and IE. Here's an example for ya on how I got it working for me:

Code: Select all

<SCRIPT LANGUAGE="JAVASCRIPT">
function validatepass() &#123;
	
	var pass = prompt('Enter Password');
	
	if (pass == 'pass') &#123;
		this.document.csproductlookup.action = 'cs_product_admin.php';
		this.document.csproductlookup.submit();
	&#125;
	
&#125;
</script>

   <form id="csproductlookup" name="csproductlookup" action="cs_product.php" target="frame2" method="POST">
		<td id="form">Style #<br />
		<input type="text" name="item" size=7 class="textforms">&nbsp;<input type="submit" value="go" name="go" class="buttonforms"><br />
		<input type="button" value="Edit" onclick="validatepass()" name="go" class="buttonforms">
		</td>
	</form>
wizzard
Forum Commoner
Posts: 93
Joined: Thu May 16, 2002 5:36 am
Location: Belgium
Contact:

Post by wizzard »

Found my error for netscape. I had to place it between <body></body>

Thanks for all the help guys. Damn such a stupid thing i forgot to place it between the tags :)
Post Reply