I am working on an order processing system that contains a form. For each line in the form, there is a button to corresponding to the specific item. When the button is pressed, the page original page (w/ form) is to be directed to an order confirmation page, and at the same time, a new instance of the browser is to be opened that allows the user to make a credit card payment - (The credit card is handled by a 3rd party).
The following code works without any difficulties in Netscape 6.01 and MS IE 5.5, but with Netscape 4.08, it only goes to the order confirmation page, the credit card window does not appear.
[red]Code for form[/red]
The JavaScript function is not located in the <HEAD> of the document, as the head is generated by a function - for templating. In fact, the hirachy of tags before it is:
<BODY> <DIV> <TABLE> <TR> <TD> <TABLE> <TR> <TD> {JavaScript}
I am aware that Netscape is not forgiving in the arrangment of code (as opposed to IE), this doesn't seem to fit that model, as the page executes the JavaScript command, it just doesn't carry out on the form's action.
[red]JavaScript action code[/red]
<script LANGUAGE="JavaScript">
function btnOrder (form_id) {
document[form_id].submit();
document[form_id].target="";
document[form_id].action="processOrder.asp";
document[form_id].submit();
return false;
}
</script>
[/code]
The following code works without any difficulties in Netscape 6.01 and MS IE 5.5, but with Netscape 4.08, it only goes to the order confirmation page, the credit card window does not appear.
[red]Code for form[/red]
Code:
<form Method=POST Action="[URL unfurl="true"]Https://www.cc.net/pay.asp"[/URL] NAME="PB_1" TARGET="_blank">
...
<input TYPE=SUBMIT NAME=SubmitPB VALUE="Buy" onClick="javascript:btnOrder('PB_1');">
The JavaScript function is not located in the <HEAD> of the document, as the head is generated by a function - for templating. In fact, the hirachy of tags before it is:
<BODY> <DIV> <TABLE> <TR> <TD> <TABLE> <TR> <TD> {JavaScript}
I am aware that Netscape is not forgiving in the arrangment of code (as opposed to IE), this doesn't seem to fit that model, as the page executes the JavaScript command, it just doesn't carry out on the form's action.
[red]JavaScript action code[/red]
<script LANGUAGE="JavaScript">
function btnOrder (form_id) {
document[form_id].submit();
document[form_id].target="";
document[form_id].action="processOrder.asp";
document[form_id].submit();
return false;
}
</script>
[/code]