form.submit on Netscape doesn't works

JavaScript and client side scripting.

Moderator: General Moderators

wizzard
Forum Commoner
Posts: 93
Joined: Thu May 16, 2002 5:36 am
Location: Belgium
Contact:

form.submit on Netscape doesn't works

Post by wizzard »

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
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

Do you have any form element named submit, i.e. <input type="submit" name="submit" value="Send">? If so, change it and it might work.

-- Scorphus
wizzard
Forum Commoner
Posts: 93
Joined: Thu May 16, 2002 5:36 am
Location: Belgium
Contact:

Post by wizzard »

Code: Select all

&lt;form name="frm_order" method="POST" action="xxxxxxxx"&gt;
&lt;INPUT TYPE="hidden" NAME="orderID" VALUE="$bestellingen_id"&gt;
&lt;INPUT TYPE="hidden" NAME="amount" VALUE="$b_totaal"&gt;
&lt;INPUT TYPE="hidden" NAME="currency" VALUE="EUR"&gt;
&lt;INPUT TYPE="hidden" NAME="pspid" VALUE="dmdreams"&gt;
&lt;INPUT TYPE="hidden" NAME="RL" VALUE="ncol_2.0"&gt;
&lt;INPUT TYPE="hidden" NAME="language" VALUE="eng_ENG"&gt;
&lt;INPUT TYPE="hidden" NAME="accepturl" VALUE="xxxxx"&gt;
&lt;INPUT TYPE="hidden" NAME="cancelurl" VALUE="xxxxx"&gt;
&lt;/form&gt;

&lt;SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript"&gt;
&lt;!--

document.frm_order.submit();

//--&gt;
&lt;/SCRIPT&gt;
feyd | Please use

Code: Select all

and

Code: Select all

tags when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
wizzard
Forum Commoner
Posts: 93
Joined: Thu May 16, 2002 5:36 am
Location: Belgium
Contact:

Post by wizzard »

This is my form
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

What is the Netscape version? Do you have something close to JavaScript debugger, or console in one of the menu items? If no, type javascript: in the address bar. This will call the JavaScript debugger, which show you the error message, if there is some.

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

Post by johnperkins21 »

I may be missing something, but doesn't this look like a problem to anyone else?

Code: Select all

<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!--

document.frm_order.submit();

//-->
</SCRIPT>
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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

nah.. it's just for making the html render hide, if script is unknown to the browser...
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

johnperkins21 wrote:(...) Aren't you commenting out the submit? What happens if you take out the comment tags? (...)
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:(...) Also, is there a reason why you are escaping all of your "s that I just don't know or see?
Maybe those lines are arguments to an echo call...

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

Post by johnperkins21 »

Oh, ok... just looked strange to me. I guess that's why the comment tags are inside <script> </script>.
User avatar
johnperkins21
Forum Contributor
Posts: 140
Joined: Mon Oct 27, 2003 4:57 pm

Post by johnperkins21 »

Did you try:

Code: Select all

<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!--
this.frm_order.submit();

//-->
</SCRIPT>
I think I've had that problem before in Netscape as well.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I haven't had to fiddle with Netscape for a good while, so this is just a thought..

you may want to try accessing the form through the forms array inside the document object..
wizzard
Forum Commoner
Posts: 93
Joined: Thu May 16, 2002 5:36 am
Location: Belgium
Contact:

Post by wizzard »

Well i have tryed this but it's still not forwarding me tot the secure page. In explorer i have not problems only in Netscape.
It's strange and i need to get a fix because customers with other browsers cannot reach the next page.
wizzard
Forum Commoner
Posts: 93
Joined: Thu May 16, 2002 5:36 am
Location: Belgium
Contact:

Post by wizzard »

Can someone helps me?
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

Some posts above I wrote:What is the Netscape version? Do you have something close to JavaScript debugger, or console in one of the menu items? If no, type javascript: in the address bar. This will call the JavaScript debugger, which show you the error message, if there is some.

-- Scorphus
wizzard
Forum Commoner
Posts: 93
Joined: Thu May 16, 2002 5:36 am
Location: Belgium
Contact:

Post by wizzard »

I use netscape 7.1 latest version but the debugger is not showing anything. I get on every site i run an error at first line with the debugger.
Post Reply