form.submit on Netscape doesn't works
Moderator: General Moderators
form.submit on Netscape doesn't works
Hello,
I'm having some troubles form.submit is not working on netscape. does anyone knows how i can fix this? I need this to put over data in the background.
Regards
Kris
I'm having some troubles form.submit is not working on netscape. does anyone knows how i can fix this? I need this to put over data in the background.
Regards
Kris
Code: Select all
<form name="frm_order" method="POST" action="xxxxxxxx">
<INPUT TYPE="hidden" NAME="orderID" VALUE="$bestellingen_id">
<INPUT TYPE="hidden" NAME="amount" VALUE="$b_totaal">
<INPUT TYPE="hidden" NAME="currency" VALUE="EUR">
<INPUT TYPE="hidden" NAME="pspid" VALUE="dmdreams">
<INPUT TYPE="hidden" NAME="RL" VALUE="ncol_2.0">
<INPUT TYPE="hidden" NAME="language" VALUE="eng_ENG">
<INPUT TYPE="hidden" NAME="accepturl" VALUE="xxxxx">
<INPUT TYPE="hidden" NAME="cancelurl" VALUE="xxxxx">
</form>
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!--
document.frm_order.submit();
//-->
</SCRIPT>Code: Select all
andCode: Select all
tags when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]- johnperkins21
- Forum Contributor
- Posts: 140
- Joined: Mon Oct 27, 2003 4:57 pm
I may be missing something, but doesn't this look like a problem to anyone else?
Aren't you commenting out the submit? What happens if you take out the comment tags?
Also, is there a reason why you are escaping all of your "s that I just don't know or see?
Code: Select all
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!--
document.frm_order.submit();
//-->
</SCRIPT>Also, is there a reason why you are escaping all of your "s that I just don't know or see?
- scorphus
- Forum Regular
- Posts: 589
- Joined: Fri May 09, 2003 11:53 pm
- Location: Belo Horizonte, Brazil
- Contact:
No, it's an HTML comment and it doesn't interfere in JavaScript processing. It is used since old browsers' parsers removed all HTML comments. This prevented users to see your script. But, nowadays it's more a convention.johnperkins21 wrote:(...) Aren't you commenting out the submit? What happens if you take out the comment tags? (...)
Maybe those lines are arguments to an echo call...johnperkins21 wrote:(...) Also, is there a reason why you are escaping all of your "s that I just don't know or see?
-- Scorphus
- johnperkins21
- Forum Contributor
- Posts: 140
- Joined: Mon Oct 27, 2003 4:57 pm
- johnperkins21
- Forum Contributor
- Posts: 140
- Joined: Mon Oct 27, 2003 4:57 pm
Did you try:
I think I've had that problem before in Netscape as well.
Code: Select all
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!--
this.frm_order.submit();
//-->
</SCRIPT>