Ajax Paging?

Discussion in 'JavaScript' started by chris davies, Mar 20, 2007.

  1. #1
    is it possible to run a paging routine using javascript or ajax? I've experimented with php with success to a certain degree, but I would like to know if there's an AJAX routine out there to do the same job. All answers gratefully recieved. many thanks
     
    chris davies, Mar 20, 2007 IP
  2. Aragorn

    Aragorn Peon

    Messages:
    1,491
    Likes Received:
    72
    Best Answers:
    1
    Trophy Points:
    0
    #2
    If you have met success with PHP, why don't you convert the code to Javascript?
     
    Aragorn, Mar 20, 2007 IP
  3. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #3
    A possible reason could be to limit load and traffic on server. Although that way is bad for SEO purposes.
    --

    And yes, it's possible, but you must write it by yourself.
    You need to add links for each page. That links will call a javascript function where you put only the content for that page (and the links for remaining pages of course)
    .
     
    ajsa52, Mar 21, 2007 IP
  4. hamidof

    hamidof Peon

    Messages:
    619
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Using JavaScript like this is very bad for SEO and also it breaks the browser's back & refresh buttons.
     
    hamidof, Mar 21, 2007 IP
  5. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #5
    ajsa52, Mar 22, 2007 IP