Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default Dynamic content: AJAX or iFrame

    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.
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  2. #2
    Join Date
    Aug 2006
    Posts
    1,426
    Tokens
    0

    Latest Awards:

    Default

    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.

  3. #3
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    tbh how many people have javascript disabled? :S

  4. #4
    Join Date
    Aug 2006
    Posts
    1,426
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by kk. View Post
    tbh how many people have javascript disabled? :S
    IE6 users.

    So, the majority market.

  5. #5
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    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?
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  6. #6
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    Quote Originally Posted by Adamm View Post
    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

  7. #7
    Join Date
    Aug 2006
    Posts
    1,426
    Tokens
    0

    Latest Awards:

    Default

    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.

  8. #8
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    Quote Originally Posted by Adamm View Post
    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.
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  9. #9
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    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

    Lew.
    Im not here to be loved, I love to be hated :-}


  10. #10
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    thats correct, use ajax into a div

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •