views:

66

answers:

4

I have implemented paypal in my web page. Process is 'given inputs are redirect to other page(2 nd page) which have to get that input and redirect to paypal page(third page). Here we submit data on first page. value pass to second page(in this page user interaction not allowed) after pass to third page.It works fine in IE . But Not In Mozila.Send any Solution.

Code sample(second page):


<%string product = Request.QueryString["productName"].ToString();%> <% string amount = Request.QueryString["price"].ToString(); %> "> ">

document.all.frmpaypal.submit();


Fine in IE, Not In Mozila

A: 

document.all is non-standard. Add an ID and use document.getElementById.

Matthew Flaschen
A: 

Have you checked into the possibility of sending values via GET instead of POST in the FORM's action attribute?

Vishal Seth
+1  A: 

document.all is an IE-only non-standard extension. You can use:

document.getElementById("frmpaypal").submit();

Which will work on both browsers. Better yet, use something like jQuery:

$("#frmpaypal").submit();

(This simple example doesn't really show you the power of jQuery, but you'll love it once you find out everything it can do!)

Dean Harding
+2  A: 
document.getElementById("frmpaypal").submit();
egrunin

related questions