[Javascript] Is it possible to use Javascript to submit oncefortwo different forms?

Mike Dougherty mdougherty at pbp.com
Tue Aug 15 09:39:09 CDT 2006


If processor1.jsp and processor2.jsp are on different domains, then you have no feasible solution 
at all.

If they're on the same domain and you control them both, then why not use a single form and have 
the form handler process both groups of data?

Otherwise, Steve's suggestion to use AJAX probably is the easiest solution.

On Tue, 15 Aug 2006 09:46:05 -0400
  Steve Clay <sclay at ufl.edu> wrote:
> Monday, August 14, 2006, 6:45:59 PM, Dong, Roland wrote:
>>> <form method=post action="processor1.jsp">
>>> </form>
>>> <form method=post action="processor2.jsp">
>>> </form>
>>>  Is it possible to click sumbit button and have both forms
>>> submitted to different actions?
> 
> It is too late to recommend rethinking this architecture? Once you require
> Javascript for this thing to work (you would have to), you might as well
> redesign the markup and script. Eg. use AJAX to send in data to one of the
> processors, if not both.



More information about the Javascript mailing list