File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 61413
    
  67

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simultaneous Ajax Calls with jQuery?