Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Javascript and forms
- From: javascript@xxxxxxxxxx (Christopher J. Crane)
- Subject: [Javascript] Javascript and forms
- Date: Mon, 16 Sep 2002 19:00:27 -0400
This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C25DB3.51ACBF40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I want to create a popup from a link. That part is simple... I want the URL of the popup to contain variables from a set of form = fields. For instance, I want to popup a window when the submit button is pressed = to go to http://my-server.com/image.php I want to add the following variables to the end from the 4 form fields = that are contained within the form. Not all of the 4 form fields will = contain data all the time. The end result should look something like = this: = http://my-server.com/image.php?sym=3Dikn&A=3Dibm&B=3Dxrx&C=3Ddanky&D=3Drh= at I would like the usual options when the popup is created, no scrollbars, = a certain size and no address bar, no status bar ect.... The part I am = stuck on is getting JavaScript to write the variables from the form to = the end of the URL as it is shown above. Thank you in advance to anyone that can help me with this. ------=_NextPart_000_000C_01C25DB3.51ACBF40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2719.2200" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>I want to create a popup from a link. = That part is=20 simple...</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I want the URL of the popup to contain = variables=20 from a set of form fields.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>For instance, I want to popup a window = when the=20 submit button is pressed to go to <A=20 href=3D"http://my-server.com/image.php">http://my-server.com/image.php</A= ></FONT></DIV> <DIV><FONT face=3DArial size=3D2>I want to add the following variables = to the end=20 from the 4 form fields that are contained within the form. Not all of = the 4 form=20 fields will contain data all the time. The end result should look = something like=20 this:</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2> <A=20 href=3D"http://my-server.com/image.php?sym=3Dikn&A=3Dibm&B=3Dxrx&= amp;C=3Ddanky&D=3Drhat">http://my-server.com/image.php?sym=3Dikn&= A=3Dibm&B=3Dxrx&C=3Ddanky&D=3Drhat</A></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I would like the usual options when the = popup is=20 created, no scrollbars, a certain size and no address bar, no status bar = ect....=20 The part I am stuck on is getting JavaScript to write the variables from = the=20 form to the end of the URL as it is shown above.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thank you in advance to anyone that can = help me=20 with this.</FONT></DIV></BODY></HTML> ------=_NextPart_000_000C_01C25DB3.51ACBF40--
- Follow-Ups:
- [Javascript] Javascript and forms
- From: Peter Brunone
- [Javascript] Javascript and forms
- Prev by Date: [Javascript] how do I know which buttom opened my pop window?
- Next by Date: [Javascript] Javascript and forms
- Previous by thread: [Javascript] how do I know which buttom opened my pop window?
- Next by thread: [Javascript] Javascript and forms
- Index(es):