Page 2 of 2

Posted: Thu Jul 08, 2004 2:53 pm
by johnperkins21
Have you tried:

Code: Select all

this.document.frm_order.submit();
Give that one a shot.

Posted: Sat Jul 10, 2004 4:29 am
by wizzard
I have tryed but still the same :s very strange

Posted: Mon Jul 12, 2004 12:45 pm
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>

Posted: Mon Jul 12, 2004 12:53 pm
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 :)