Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Multiple Form Actions - Javascript Required?

    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

  • #2
    Senior Coder
    Join Date
    Jul 2005
    Location
    New York, NY
    Posts
    1,084
    Thanks
    4
    Thanked 19 Times in 19 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •