Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 88762

Pages: 1
JavaWorld
addict


Reged: 06/20/03
Posts: 482
Services orchestration for AJAX
      #41584 - 12/13/06 03:54 PM

Services orchestration for AJAX

Post Extras: Print Post   Remind Me!   Notify Moderator  
Mongus
stranger


Reged: 12/19/06
Posts: 1
Re: Services orchestration for AJAX [Re: JavaWorld]
      #41819 - 12/19/06 09:08 AM

Don't forget that the third parameter to XMLHttpRequest.open() specifies if the call should be asynchronous.

If your functions need to occur sequentially it usually makes more sense to simply make the call synchronous instead of building a complex framework. Keep in mind that if you do make the call synchronous the browser may appear to hang while the server is accessed so your server side process should be quick.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Masayuki Otoshi
Unregistered




Re: Services orchestration for AJAX [Re: Mongus]
      #41833 - 12/19/06 10:23 PM

> your server side process should be quick.

Right. That is the issue I want to eliminate.
The following blog also mentioned it, and you will find another frameworks, "Narrative Javascript" and "jwacs" as another approach:

"Eliminating async Javascript callbacks by preprocessing"
http://www.sitepoint.com/blogs/2006/09/12/eliminating-async-javascript-callbacks-by-preprocessing/


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 3372

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5