wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Simultaneous Ajax Calls with jQuery? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Simultaneous Ajax Calls with jQuery?" Watch "Simultaneous Ajax Calls with jQuery?" New topic
Author

Simultaneous Ajax Calls with jQuery?

Bryce Martin
Ranch Hand

Joined: Nov 19, 2007
Posts: 269
Is it possible to make simultaneous AJAX calls with jQuery? I have two jqGrids on one page. They both load via an AJAX call to the server. I saw an example on how to do this but it wasn't using jQuery.

Just want to know if this is possible. If yes, then how, of no then is it in the works?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

jQuery itself uses no global variables to record state, so there is no limit, other than the practical, on the number of simultaneous requests imposed by the library. The browser may have something to say about it though.

Whether jqGrid allows multiple instances or not is a question for the plugin author*.


* Though I'd be surprised if it did not -- that's just not the "jQuery way". In jQuery in Action, the Photo-o-matic plugin example only allows a single instance per page in order to keep the example simple and focused on the subject at hand, but the book does describe how to lift that restriction with just a little extra effort.
[ February 12, 2008: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Simultaneous Ajax Calls with jQuery?
 
Similar Threads
Spring Book Question
[Jquery 1.2.6] Response mismatch with multiple ajax requests in a row
jQuery and JSP
DWR and Jquery Integration
javascript function calling a servlet