in reply to Re^2: submit to muliple actions
in thread submit to muliple actions
var params = { foo: $('foo').value, bar: $('bar').value }; new Ajax.Request("one.pl", { parameters: params, onSuccess: handle_one }); new Ajax.Request("two.pl", { parameters: params, onSuccess: handle_two });
Then I'd write "handle_one()" and "handle_two()" to do something with the return values from the scripts. Also, you'll want onFailure and onException handlers. But that's the basic idea.
Reluctant JavascriptMonk,
-sam
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: submit to muliple actions
by vit (Friar) on Feb 17, 2008 at 19:01 UTC | |
by samtregar (Abbot) on Feb 17, 2008 at 19:08 UTC | |
by vit (Friar) on Feb 17, 2008 at 19:26 UTC | |
by vit (Friar) on Feb 17, 2008 at 22:20 UTC |