Page 1 of 1
something cool: threaded ajax
Posted: Wed Feb 17, 2010 12:16 am
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!
Re: something cool: threaded ajax
Posted: Wed Feb 17, 2010 12:06 pm
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.
Re: something cool: threaded ajax
Posted: Wed Feb 17, 2010 8:21 pm
by josh
His demo puts me into an infinite javascript pop up situation. not cool. Plus, This seems stupid. Ajax is already asynchronous.
Re: something cool: threaded ajax
Posted: Thu Feb 18, 2010 1:17 am
by daedalus__
;(
Re: something cool: threaded ajax
Posted: Thu Feb 18, 2010 3:30 pm
by kaszu
Check jQuery source, that's a good place to learn.
Re: something cool: threaded ajax
Posted: Thu Feb 18, 2010 3:50 pm
by Eran
kaszu wrote:Check jQuery source, that's a good place to learn.
+1