PDA

View Full Version : Dynamic content: AJAX or iFrame



Jahova
17-02-2010, 03:44 PM
I'm currently coding a new online radio site and I would like to know which method of dynamically loading content I should use. AJAX (javascript) or the old method of iFrames.

Thought and opinions please and thank you.

Adamm
17-02-2010, 03:55 PM
AJAX has to have Javascript enabled thus decreasing the accessibility of your website and iframes should only be used if absolutely necessary. Use includes and you'll be set.

kk.
17-02-2010, 03:57 PM
tbh how many people have javascript disabled? :S

Adamm
17-02-2010, 04:01 PM
tbh how many people have javascript disabled? :S
IE6 users.

So, the majority market.

Jahova
17-02-2010, 04:04 PM
IE6's use is dieing down and it has been overtaken by IE8 as the most widely used browser. PHP includes refresh the page I thought, thus, stopping the radio and making it refresh.

It's either one of the two.. Which one will it be?

kk.
17-02-2010, 04:12 PM
IE6 users.

So, the majority market.
IE8 = 14.3%
IE7 = 11.7%
IE6 = 10.2
Firefox = 46.3%
Chrome = 10.8%
Safari = 3.7%
Opera = 2.2%

10.2% use IE6 which is comparatively small, expecially since most of those users will be upgrading, especially as more and more developers stop developing for it. Also, the IE6 users are normally office workers afaik

Adamm
17-02-2010, 04:18 PM
Yeah I just read, I'm way behind the times.

Still, includes. I can't remember but they don't refresh the page. I can't remember correctly though. AJAX does my head in though.

Jahova
17-02-2010, 04:52 PM
Yeah I just read, I'm way behind the times.

Still, includes. I can't remember but they don't refresh the page. I can't remember correctly though. AJAX does my head in though.
Why does it do your head in? It can sometimes be messy for the actual website coder, but for the end-user all it provides is a better experience.

LMS16
17-02-2010, 10:46 PM
Ajax is alot better tbh, it shows the content on the page as the php includes does but doesnt need the whole page refreshing... Correct me if Im wrong, its bin a while since I used ajax :P

Lew.

Colin-Roberts
18-02-2010, 02:34 AM
thats correct, use ajax into a div

Jahova
18-02-2010, 08:29 AM
Thank you. My mind was already set on AJAX but I was just seeing if iFrames had an argument :P

Want to hide these adverts? Register an account for free!