something cool: threaded ajax

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

something cool: threaded ajax

Post by daedalus__ »

a lot of people probably already saw this since its a few years old but i hadn't because i hadn't been using so much javascript until the past half year or so:

http://www.cmarshall.net/MySoftware/aja ... index.html

there it is. i thought it was really neat. if you don't care to read, like me, then scroll down about a page and start clicking!
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: something cool: threaded ajax

Post by kaszu »

Only thing what that script does (as I understood) is ajax call with timeout and allows to pass additional data to callbacks.

JS code is just horrible:
1) hard to read and probably maintain
2) callback function created from a string (omg!), because of invalid assumption
3) "threaded"? It's just asynchronous ajax call with queue (which is not even working in the demo!)

I would never use it.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: something cool: threaded ajax

Post by josh »

His demo puts me into an infinite javascript pop up situation. not cool. Plus, This seems stupid. Ajax is already asynchronous.
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Re: something cool: threaded ajax

Post by daedalus__ »

;(
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: something cool: threaded ajax

Post by kaszu »

Check jQuery source, that's a good place to learn.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: something cool: threaded ajax

Post by Eran »

kaszu wrote:Check jQuery source, that's a good place to learn.
+1
Post Reply