aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes If one is new to AJAX, and a beginner to PHP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "If one is new to AJAX, and a beginner to PHP" Watch "If one is new to AJAX, and a beginner to PHP" New topic
Author

If one is new to AJAX, and a beginner to PHP

Wayne Riddle
Greenhorn

Joined: Jan 27, 2005
Posts: 10
Would it make sense to to become more proficient with AJAX first and then dive into learning how to use AJAX and PHP together?

Thanks
Mike Firkser
Ranch Hand

Joined: Oct 21, 2003
Posts: 247

Although I've only recently started using AJAX, I would say learn PHP (or a similar technology, I use Java Servlets) first. AJAX sends a request to the server, so you need something to process that request. You don't need to be a PHP expert to use it (with AJAX), but you do need some basic knowledge.


Mike Firkser
Rutgers '84
ryan headley
Ranch Hand

Joined: Jun 28, 2000
Posts: 156
Most certainly learn PHP first. At the very least, you can start writing an application and not even worry about Ajax, and when you're done still have a fully working app with no Ajax whatsoever.

Like the poster above mentioned. Ajax needs something to talk to on the other side, without that, its just javascript doing nothing. One thing I'm seeing alot of, and it concerns me, is using Ajax/JS just because "we can."

We really need to think about what makes sense when it comes to using these technologies. If there is a need for it in your application use it. It all comes down to what you want your application to do. Do page refreshes bother you? Are the page refreshes taking a long time? Or do you just wanna say, "yeah, my app uses some ajax", etc.

Ajax is a great tool, but don't over engineer to use it simply because its "cool." Learn the server side language first, then learn the other ways to enhance the application you've written with things like Ajax.

Just my 2 Mhz


Ryan Headley<br /><a href="http://www.sudovi.com" target="_blank" rel="nofollow">http://www.sudovi.com</a>
Neil Ford
Greenhorn

Joined: Apr 04, 2005
Posts: 1
Originally posted by Wayne Riddle:
Would it make sense to to become more proficient with AJAX first and then dive into learning how to use AJAX and PHP together?


PHP first I would say... and the JavaScript... and then AJAX.
Wayne Riddle
Greenhorn

Joined: Jan 27, 2005
Posts: 10
Thanks for the replies, I'll keep brushing up on PHP for now then.
Bogdan Brinzarea
author
Greenhorn

Joined: Aug 22, 2006
Posts: 25
I would also go for PHP first as it will represent the server side backend of each application. Next, you can start with AJAX. As the AJAX applications become more complex you will need to extend your PHP and AJAX knowledge.


Hope it helps!

Regards,
Bogdan
 
wood burning stoves
 
subject: If one is new to AJAX, and a beginner to PHP