Changing the target of a form
posted 24 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I need to change the target of a form.. How would this be done. ?? 
-Dale
------------------
What's this H2SO4 doing in my fridge?? ( thud )

-Dale
------------------
What's this H2SO4 doing in my fridge?? ( thud )
By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
posted 24 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
if u need to change the target to which the form is posted dynamically, then u can do it with javascript.
posted 24 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Do you need to change the action, or the target? Srini's code above changes the action of the form, but if you're trying to send the results of a form to a different frame or window, you could do it by adding the target attribute like so:
<FORM ACTION="MyAction" METHOD="POST" TARGET="ResultsFrame">
Where the target is the name of the frame or window you want the results to be sent to.

[This message has been edited by Connie Boyd (edited May 16, 2001).]
<FORM ACTION="MyAction" METHOD="POST" TARGET="ResultsFrame">
Where the target is the name of the frame or window you want the results to be sent to.

[This message has been edited by Connie Boyd (edited May 16, 2001).]
Dale DeMott
Ranch Hand
Posts: 515
posted 24 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I want to change the target.... not the action. How can I change that in JavaScript. I need it to be dynamic in that way.
By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
| For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad? The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |






