Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simultaneous Ajax Calls with jQuery?

 
Bryce Martin
Ranch Hand
Posts: 269
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64192
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic