Balancing AJAX and PHP
Posted: Wed Dec 29, 2010 11:33 am
I'm new to this board, so if this has been addressed before, sorry, I couldn't find anything in the searches when I looked.
I consider myself an intermediate programmer, not a professional, but I do know more than most 'newbies' but am by no means an expert. I've created sites using various techniques, using just php, templates, and now doing a more "ajax" type of site using a lot of jquery and straight javascript. My question to you is, what type of guidelines do you use when you design your sites? How much of your site's abilities do you build with php and how much with javascript. For example, on the site i'm currently working all I'm doing with php, is generating JSON objects that I then work with that data on the client side. As my site gets more and more complex, I'm starting to wonder if I should have just used more php and less javascript. I'm trying to get an idea, as to where to draw the line of what falls into what side of the equation.
I supposed my issue maybe that I'm just not putting php and jquery together in a graceful way.. I am primarily self taught, learning from my mistakes as I go... a lot of mistakes.
So I guess what I really want to know is, how do you decide what parts of a website really need to be AJAX and what doesn't? I'm not even sure if that question makes sense, maybe I'm over thinking this.
Thanks in advance,
Rene
I consider myself an intermediate programmer, not a professional, but I do know more than most 'newbies' but am by no means an expert. I've created sites using various techniques, using just php, templates, and now doing a more "ajax" type of site using a lot of jquery and straight javascript. My question to you is, what type of guidelines do you use when you design your sites? How much of your site's abilities do you build with php and how much with javascript. For example, on the site i'm currently working all I'm doing with php, is generating JSON objects that I then work with that data on the client side. As my site gets more and more complex, I'm starting to wonder if I should have just used more php and less javascript. I'm trying to get an idea, as to where to draw the line of what falls into what side of the equation.
I supposed my issue maybe that I'm just not putting php and jquery together in a graceful way.. I am primarily self taught, learning from my mistakes as I go... a lot of mistakes.
Thanks in advance,
Rene