Page 1 of 2

form.submit on Netscape doesn't works

Posted: Thu Jul 01, 2004 4:34 pm
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

Posted: Thu Jul 01, 2004 4:36 pm
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

Posted: Thu Jul 01, 2004 4:44 pm
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]

Posted: Thu Jul 01, 2004 4:51 pm
by wizzard
This is my form

Posted: Thu Jul 01, 2004 5:00 pm
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

Posted: Fri Jul 02, 2004 10:42 am
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?

Posted: Fri Jul 02, 2004 10:59 am
by feyd
nah.. it's just for making the html render hide, if script is unknown to the browser...

Posted: Fri Jul 02, 2004 11:00 am
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

Posted: Fri Jul 02, 2004 11:08 am
by johnperkins21
Oh, ok... just looked strange to me. I guess that's why the comment tags are inside <script> </script>.

Posted: Fri Jul 02, 2004 11:12 am
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.

Posted: Fri Jul 02, 2004 5:28 pm
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..

Posted: Wed Jul 07, 2004 2:25 pm
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.

Posted: Wed Jul 07, 2004 4:30 pm
by wizzard
Can someone helps me?

Posted: Wed Jul 07, 2004 5:56 pm
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

Posted: Thu Jul 08, 2004 1:03 am
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.