CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript programming (http://www.codingforums.com/forumdisplay.php?f=2)
-   -   Pagination help (http://www.codingforums.com/showthread.php?t=284988)

maglincer 12-29-2012 07:52 AM

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.

Philip M 12-29-2012 09:38 AM

Quote:

Originally Posted by maglincer (Post 1302872)
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.

Old Pedant 12-29-2012 09:12 PM

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.


All times are GMT +1. The time now is 06:05 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.