Forum Moderators: open

Message Too Old, No Replies

Problem with NS 7 and form target

         

Hobgoblin

8:58 pm on Apr 17, 2003 (gmt 0)

10+ Year Member



I have an ordering form where the order button opens up a new window and asks whether they wish to have the product mailed, or if they wish to download it.

The downloading option uses a javascript button to an automated system, and the onClick event takes the user to the ordering page in the PARENT window, while closing the popup. This works fine in all current browser versions (IE 5 and 6, Netscape 4.x, 6 and 7).

However if they want it mailed, they have to submit to a payapal via a FORM, so i cannot use the JS buttons to submit, because the URL to the paypal system doesnt have any variables in it. (ends in webscr/).

So I'm sort of stuck on how to get this to work with NS 6 and 7... the form target attribute works in IE, but not in Netscape. As I understand, I would need to use some sort of JS code with document.form properties in it.

I've searched on the web, and I found one solution, but it never worked, and now I cannot find the wespage it was on (of course) to paste here.

Anyone encounter this problem and find a way to fix it?

Thanks!

tedster

7:34 am on Apr 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do I understand your question correctly?

The pop-up window has a form that the user fills out. If the user selects the "mail" button, you want to use that data to populate a form in the parent (opener) window?

Hobgoblin

7:49 pm on Apr 21, 2003 (gmt 0)

10+ Year Member



No - the form would submit information to the parent window... but I decided to place the form in the same window anyways, so as to ensure a minimized error ratio.