Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Pagination help

  1. #1
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Pagination help

    Hi all,
    Im trying to get my website that Im currently making to load videos like it does in this website and have the numbers 1 2 3 4 next etc down the bottom. – http://www.soothetube.com/

    I understand html, css but thats it. Am I right in saying that these videos load from a database via javascript or php and that the videos automatically move onto the next page when full?

    The main thing I want to ask is, is it possible to do this without learning javascript or the other languages used for pagination by using a program like dreamweaver just for the pagination part?

    Thanks.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,908
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by maglincer View Post
    The main thing I want to ask is, is it possible to do this without learning javascript or the other languages used for pagination by using a program like dreamweaver just for the pagination part?

    Thanks.
    No. And Dreamweaver is not well thought of around here. Most people think that it produces about the worst and most out of date JavaScript code possible. But your question is not a Javascript issue.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,127
    Thanks
    75
    Thanked 4,338 Times in 4,304 Posts
    As Philip said, the page you showed...at least the pagination part of it...has *NOTHING* to do with JavaScript.

    Didn't you notice the URL that is used when you click on one? For example
    Code:
    http://www.soothetube.com/page/4/
    ???

    So that is sending *BACK* to the server *ASKING* for "/page/4".

    More than likely, what is actually happening is that there is a URL REWRITE rule in place (look that up) and you are actually hitting something like
    Code:
    http://www.soothetube.com/index.php?page=4
    (It's not exactly that...I tried it. But check out what happens if you use
    Code:
    http://www.soothetube.com/index.php?p=4
    or
    http://www.soothetube.com/index.php?p=17
    or some other number
    so I'm on the right track.)

    So this is 100% server-side pagination. Period.
    Last edited by Old Pedant; 12-29-2012 at 09:16 PM.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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