| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Mar 2007
Posts: 4
|
Learning AJAX
Hello. I want to learn some AJAX. I know that AJAX basically is Javascript, but are knowing Javascript really necessary for coding AJAX? There are so many "so-called" Javascript- and AJAX libraries out there, like Prototype, JQuery and many more. What are those really? Something that makes it possible to "write" Javascript in a shorter and more efficient way without actually writing javascript-code? Or have I misunderstood completely? Well, my main question is: How do I get started with AJAX in the easiest and most efficient way possible? I do not need anything superadvanced, I am just going to use it for simple things. It would also be positive is the code is fast and efficient, and don't use too many resources. |
|
|
|
|
|
#2 (permalink) |
|
competitionmaster 2.0
Join Date: Oct 2006
Location: USA
Posts: 1,371
|
If you want to learn AJAX an easy, (cheating) way, you could use mootools and just learn how to work that. if you really want to actually learn it, you should learn javascript and then it will help you a lot for learning ajax. |
|
|
|
#3 (permalink) |
|
Senior Member
|
If you just want to use Ajax use one of those prewritten libraries. But if you actually want to know Ajax, first start learning JavaScript, then combine it with a server-side scripting language of your choice. Using libraries without any Javascript knowledge is kind of dangerous, though. If things fall apart (and they tend to) you won't be able to fix it. Also make sure your site runs fine without any fancy Javascript first. Ajax should be used as an enhancement, giving a smoother user experience. Your functionality shouldn't depend on it as there are still people/companies that have it disabled. For a nice medium-level introduction to Ajax read Bulletproof Ajax by Jeremy Keith |
|
|
|
#4 (permalink) |
|
Registered User
Join Date: Mar 2007
Posts: 4
|
Thanks for the replyes! I guess I will just use a framework. Learning Javascript takes too much time, more time than I have right now. Well, What is the best(easy and effictive) javascript framework? Is Script.acol.us any good? What about JQuery? |
|
|
|
#6 (permalink) |
|
Registered User
Join Date: Jun 2007
Location: Los Angeles
Posts: 33
|
Yes, JS is part of Ajax - unless you're using a framework which 'hides' the details from you, you will need to know JS and some server-side scripting language. I learned Ajax using JS and PHP - no framework - but I understand that Ruby on Rails has one of the best Ajax frameworks around. I suggest you check into that development platform. Ruby is the newest web language so not all web hosting providers are onboard with Ruby yet. I have a strong web developer background so I made sure my web hosting company was up to date with Ruby support. If you need a great web hosting plan with Ruby support, checkout our Deluxe and Premium shared hosting plans. RalphF Home of $4.99 Hosting GoldRushWebHosting.com |
|
|
|
#7 (permalink) |
|
Registered User
Join Date: Apr 2007
Location: colorado, usa
Posts: 23
|
If you want a really easy, beginner-friendly introduction to Ajax I recommend the book Head Rush Ajax. I've had really good experiences with a couple of the other Head First books and imagine this one follows suit. |
|
|
|
#9 (permalink) |
|
I like code.
|
http://www.sitepoint.com/books/ajax1/ is a good one, simple book good for getting the basics of AJAX. It shows examples and goes through the process of creating an AJAX class that you can use. |
|
|
|
#10 (permalink) | |
|
Deathblow
Join Date: Apr 2006
Location: Norway
Posts: 354
|
Quote:
|
|
|
|
|
#12 (permalink) |
|
Registered User
|
Javascript is hardly the only thing you need to learn to utilize Ajax. There are several other factors, including when/where to use it, how to implement, graceful degradation, which server-side language to use, presentation (using CSS/HTML to display loaders, etc), and putting it all together in a speedy/efficient application. Head rushing into something that you have little background on, could potentially lead to headaches and a very inefficient application. People ruined Flash, by seeing very appealing movies and thinking that they could publish similar work without any knowledge of programming or design. This is mainly a rant, but I can't recommend enough that you learn how Javascript works, how server-side languages work, etc. Good luck though! |
|
|
|
#13 (permalink) |
|
misanthrope
Join Date: Jan 2005
Posts: 12,273
|
Good points all, hobolooter. Also, I didn't read this thread originally. JQuery and Mootools are not Ajax. They're just JavaScript libraries. The could potentially be used for Ajax applications, but Ajax also requires server-side programming and usually database integration as well. Adding that Bulletproof Ajax is an excellent book, too. |
|
![]() |