Unless I'm mistaken in my understanding of your issue, this is kind of what
AJAX was really meant for.  You can certainly post something, and then do a
get on whatever it was you posted to to get a response.  You might want to
take a polling approach where you set a javascript timer or timeout to do
the get request after a certain amount of time to allow the service to do
its work.  You're just making two AJAX calls on the page, instead of one.
Here is an example for you, its a shoutbox module I wrote in PHP using
javascript.  It isn't using jQuery (to eliminate dependencies) but you can
get the idea


http://sourceforge.net/projects/easyshoutbox/files/easyshoutbox/Easy_shout_box_0.5/

cheers

Michael Lawson
Development Lead, Global Solutions, ibm.com
Phone:  1-276-206-8393
E-mail:  [email protected]

'Whether one believes in a religion or not,
and whether one believes in rebirth or not,
there isn't anyone who doesn't appreciate kindness and compassion..'


                                                                       
  From:       Josip Lazic <[email protected]>                          
                                                                       
  To:         "jQuery (English)" <[email protected]>          
                                                                       
  Date:       08/24/2009 08:19 AM                                      
                                                                       
  Subject:    [jQuery] Realtime ajax response                          
                                                                       






Hi,

can jQuery display response from .post request in realtime?

I force buffer flush in PHP with ob_start, and ob_flush, I know that I
can set target='iframeID' to my form, but I need ajax and target
should be div.

Thanks

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

Reply via email to