AJAX v Javascript
Posted: Mon Jul 23, 2007 9:11 am
Hi,
I am in the process of moving my mod to the next stage, which is the look and feel (as opposed to the php side of things).
I love one click functionality, and for my mod there will be a lot of data to show. I don't want multiple page loads for this data, so it's either AJAX or Javascript.
I like Javascript, because I can get everything loaded into the html. I can then overlay multiple divs and then use the display attribute to set them invisible. With onClick javascript functions, I can then show whichever data is requested.
The downside to me is obvious, page load and bandwidth.
AJAX, as you know, will do pretty much the same thing, only it retrieves the data and builds the html on demand (ie with each click).
The downside of AJAX, is that maybe the server request is missed for some reason. Then it doesn't work.
I'm thinking that in this day and age, the downside to javascript is becoming less and less of a problem, because we have broadband internet, and most web hosts are offering very generous bandwidth packages.
What are your thoughts, mod authors?
I am in the process of moving my mod to the next stage, which is the look and feel (as opposed to the php side of things).
I love one click functionality, and for my mod there will be a lot of data to show. I don't want multiple page loads for this data, so it's either AJAX or Javascript.
I like Javascript, because I can get everything loaded into the html. I can then overlay multiple divs and then use the display attribute to set them invisible. With onClick javascript functions, I can then show whichever data is requested.
The downside to me is obvious, page load and bandwidth.
AJAX, as you know, will do pretty much the same thing, only it retrieves the data and builds the html on demand (ie with each click).
The downside of AJAX, is that maybe the server request is missed for some reason. Then it doesn't work.
I'm thinking that in this day and age, the downside to javascript is becoming less and less of a problem, because we have broadband internet, and most web hosts are offering very generous bandwidth packages.
What are your thoughts, mod authors?
