in reply to submit to muliple actions

Yes. You could do it with iframes or with AJAX calls. Are you using an AJAX framework already?

-sam

PS: This is not a Perl question. You might get better answers asking somewhere else.

Replies are listed 'Best First'.
Re^2: submit to muliple actions
by vit (Friar) on Feb 17, 2008 at 18:41 UTC
    No, I don't. Could you give me a hint or a simple example to start with.
      Sure. I'd use Prototype to do this. If I wanted to submit a form with two fields "foo" and "bar" to two scripts, "one.pl" and "two.pl" I'd do:

      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

        Thanks,
        So it should work with perl/cgi, right?
        Why do you suggest to use Prototype?