...

View Full Version : Multiple Form Actions - Javascript Required?



paulc
04-28-2006, 06:47 PM
I have a simple SEARCH form which matches items from my supplier and delivers the results to the 'body' frame of my website. This works fine and here is the code.

<FORM ACTION="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" TARGET="body">
<INPUT TYPE=HIDDEN NAME="partner" VALUE="xxxxx">
<INPUT TYPE=HIDDEN NAME="partnerId" VALUE="xxxxx">
<INPUT TYPE=HIDDEN NAME="xxx" VALUE="xxxx">
<CENTER>
<P ALIGN=CENTER>
<INPUT TYPE=TEXT NAME="xxxxxxx" SIZE="25" MAXLENGTH="256"><FONT COLOR="WHITE">..<INPUT TYPE=SUBMIT VALUE="Go"><INPUT TYPE=RESET VALUE="Clear"></FONT>
</FORM></TD>

However what I would like to do is use the same SEARCH box information typed in to generate a second search at another supplier and deliver the results alongside in another frame. The frame part is easy enough but how can I get two Form Actions from one form?
I understand it cannot be done in HTML but it may be possible in Javascript.
Any help greatly appreciated.
Thanks
Paul

Beagle
04-28-2006, 08:28 PM
without using XMLHTTPRequest, you could create an identical copy of the form in the other frame but using hidden fields, and when you submit the visible form, you use javascript to copy the data to the hidden one in the other frame, and submit both forms individually. This would get each frame to refresh with new data.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum