Changing Page Without Reload

Discussion in 'HTML & Website Design' started by wd_2k6, Feb 9, 2008.

  1. #1
    Hi, I was wondering is it possible to implement a feature whereby if the user clicks another page then the content doesn't have to reload. What I mean is like the Youtube Comments system, whereby only the comments reload if the user clicks the 2nd page of comments. I basically need the same as this, is this possible?
     
    wd_2k6, Feb 9, 2008 IP
  2. JWRmedia

    JWRmedia Banned

    Messages:
    499
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Off the top of my head, the youtube comments are setup in ajax, no?

    *going to check...
     
    JWRmedia, Feb 9, 2008 IP
  3. mutley

    mutley Peon

    Messages:
    356
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes you need to have ajax script two do this. but i am not sure how you do this at all as i dont now ajax
     
    mutley, Feb 9, 2008 IP
  4. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #4
    As said, the answer is ajax, be aware however that as it is javascript that it wont work on some browsers and search engine spiders may have problems indexing
     
    AstarothSolutions, Feb 9, 2008 IP
  5. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes many thanks i found the script now i'll see how things go without it as it's probably unnessecary unless my site becomes overloaded with comments but until then there is no need i suppose!!
    Many Thanks for your help.
     
    wd_2k6, Feb 9, 2008 IP
  6. manwanis

    manwanis Peon

    Messages:
    44
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you don't want to use Ajax the other option is IFrame.
     
    manwanis, Feb 9, 2008 IP
  7. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can also have the whole page in a template. A templating system can be run server side wherein say the header and menu stay on the page, where the middle content part is changed (a new middle is inserted with scripting).

    We're doing this with our insurance sites. The whole page doesn't reload simply to bring up information or a quote. We use Perl to put new data in $params sitting in the HTML template, OR I make an empty <div id="quotecontent"></div> and the Perl template knows to put x-amount of new code inside that div on the page, while touching nothing else. You can write an HTML template (not to be confused with a design template) in any OOP-- Perl, Python, php, whatever.
     
    Stomme poes, Feb 10, 2008 IP