Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-29-2012, 07:52 AM   PM User | #1
maglincer
New to the CF scene

 
Join Date: Dec 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
maglincer is an unknown quantity at this point
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.
maglincer is offline   Reply With Quote
Old 12-29-2012, 09:38 AM   PM User | #2
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,033
Thanks: 197
Thanked 2,410 Times in 2,388 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
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.
Philip M is offline   Reply With Quote
Old 12-29-2012, 09:12 PM   PM User | #3
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,172
Thanks: 59
Thanked 3,994 Times in 3,963 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
__________________
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.

Last edited by Old Pedant; 12-29-2012 at 09:16 PM..
Old Pedant is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:37 PM.


Advertisement
Log in to turn off these ads.