| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
blam blam
Join Date: Aug 2006
Location: ann arbor, mi usa
Posts: 525
|
AJAX developers (of any experience level)
I notice that a lot of developers out there seem to use AJAX javascript frameworks, like prototype, or google. does anyone just use plain javascript with a XMLHttpRequest object anymore? or does everyone build on top of a framework these days? |
|
|
|
|
|
#2 (permalink) |
|
vague™
Join Date: Mar 2004
Location: Glasgow
Posts: 5,190
|
use http://jquery.com/, it's just so painless. Example: Save some data to the server and notify the user once its complete. Code:
|
|
|
|
#4 (permalink) |
|
blam blam
Join Date: Aug 2006
Location: ann arbor, mi usa
Posts: 525
|
yeah, but i could write the ajax back-end for that class in about 5 minutes. so i'd rather do it myself. it's nice to have a wrapper for the XMLHttp call, but is it neccessary to uild on top of an entire framework? i'm just wondering if there is something i'm missing. it just gets a bit messy... if you want to use script.aculo.us you need to download that js, and it requires that you have protoype installed... i just don't like building on top of tons of code i did not write. could make for a debug nightmare. |
|
|
|
#6 (permalink) |
|
hmmm...
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,130
|
I think it's far better to start using a framework after you've learned how to write javascript anyway. That way you appreciate how much easier it makes things. And in jQuery, the fact you have so much less code, actually makes maintenance much easier. I've been back to old projects and it's taken a fair while to get my head round what I've done. I just don't get that with jQuery. |
|
|
|
#7 (permalink) |
|
blam blam
Join Date: Aug 2006
Location: ann arbor, mi usa
Posts: 525
|
but most of the time you end up with more custom classes and functions than you'll ever need. also, jQuery is inventing syntax all of it's on, isn't it? could be misleading, since it's not really javascript. i just wrote a super simple ajax wrapper class that works just like jQuery, but without custom syntax. if anybody wants to see/use it, i'd be happy to post it. then you can all call me a moron. |
|
![]() |