473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Hotmail style paging

Hi everyone

I'm just wondering if anyone has some code already for a hotmail style
paging mechanism. Rather than showing all page numbers 1 2 3 ... etc.

It does this:

1 2 3 4 .... 10 .... 30
1 .......... 20 .... 30

If you have hotmail and lots of email please login and you will see what
I mean.

If anyone has one of these 'crazy' paging snippets I'd really appreciate
it, tried searching google but couldn't find anything.

thanks.

Tyno
Oct 1 '07 #1
4 2067
Hi,

I think this article has some tips on pagination in php:
http://www.phpfreaks.com/tutorials/43/0.php
On Oct 1, 4:15 am, Tyno Gendo <nob...@example.comwrote:
Hi everyone

I'm just wondering if anyone has some code already for a hotmail style
paging mechanism. Rather than showing all page numbers 1 2 3 ... etc.

It does this:

1 2 3 4 .... 10 .... 30
1 .......... 20 .... 30

If you have hotmail and lots of email please login and you will see what
I mean.

If anyone has one of these 'crazy' paging snippets I'd really appreciate
it, tried searching google but couldn't find anything.

thanks.

Tyno

Oct 1 '07 #2
petersprc wrote:
Hi,

I think this article has some tips on pagination in php:
http://www.phpfreaks.com/tutorials/43/0.php
On Oct 1, 4:15 am, Tyno Gendo <nob...@example.comwrote:
>Hi everyone

I'm just wondering if anyone has some code already for a hotmail style
paging mechanism. Rather than showing all page numbers 1 2 3 ... etc.

It does this:

1 2 3 4 .... 10 .... 30
1 .......... 20 .... 30

If you have hotmail and lots of email please login and you will see what
I mean.

If anyone has one of these 'crazy' paging snippets I'd really appreciate
it, tried searching google but couldn't find anything.

thanks.

Tyno

Yes, it does, thanks. However, that's a standard pager, I need it to be
a hotmail style so that no matter how many pages it say fits within a
block 200 pixels wide (or whatever) so it has to be intelligent and skip
numbers but still show the first set, a bit in the middle and the end
numbers.

Oct 1 '07 #3
While the city slept, Tyno Gendo (no****@example.com) feverishly typed...
Hi everyone

I'm just wondering if anyone has some code already for a hotmail style
paging mechanism. Rather than showing all page numbers 1 2 3 ...
etc.

It does this:

1 2 3 4 .... 10 .... 30
1 .......... 20 .... 30
I've just knocked up some quick and dirty code that does something like
this. Take a look at http://www.nigenet.org.uk/stuff/longpagdemo.php and see
if that helps... It may get you on the way at least.

Cheers,
Nige

--
Nigel Moss http://www.nigenet.org.uk
Mail address will bounce. ni***@DOG.nigenet.org.uk | Take the DOG. out!
"Your mother ate my dog!", "Not all of him!"
Oct 1 '07 #4
nice.guy.nige wrote:
While the city slept, Tyno Gendo (no****@example.com) feverishly typed...
>Hi everyone

I'm just wondering if anyone has some code already for a hotmail style
paging mechanism. Rather than showing all page numbers 1 2 3 ...
etc.

It does this:

1 2 3 4 .... 10 .... 30
1 .......... 20 .... 30

I've just knocked up some quick and dirty code that does something like
this. Take a look at http://www.nigenet.org.uk/stuff/longpagdemo.php and see
if that helps... It may get you on the way at least.

Cheers,
Nige
Cheers Nige, that's a good start, thank you.
Oct 2 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chumley the Walrus | last post by:
I have a style tag: <style type="text/css"> <!-- a:link {color: #ff6600; text-decoration: underline; } --> </style> ....that preceeds my datagrid that has paging objects, but when i look...
1
by: Randy | last post by:
Hello, I've got an ASP app. I have a simple datagrid. If I don't use column templates I can easily set up the datagrid to use paging by creating a PageIndexChanged event and putting this code in...
0
by: wh1974 | last post by:
I've found several posts on the question that I'm about to ask but have found that all link to a page on a website requiring a subscription. The problem I'm having is that in the paging row of a...
2
by: asad | last post by:
Hello friends, i am designing a ASP.NET page where i want to use custom paging bcoz data is too heavy so pls tell me how can i use custom paging in ASP.NET Thanks
2
by: farhad13841384 | last post by:
Hi , I Hope You fine. I have some problem with this code for paging in asp.net this bottom code work correctly without any error but when I try to place separate code in .VB file then error is...
1
by: davidjgonzalez | last post by:
I have a GridView that has paging enabled. Each item (as defined in an ItemTemplate) includes several controls which have operations i would like to Atlas-enable. Everything is working well except...
0
by: anonieko | last post by:
This approach I found very efficient and FAST when compared to the rowcount, or Subquery Approaches. This is before the advent of a ranking function from DB such as ROW_NUMBER() in SQL Server...
2
by: rn5a | last post by:
In a shopping cart app, a ASPX page retrieves the order details & personal details of a user from a MS-Access database table depending upon the username of the user. The order details of a...
1
by: webster5u | last post by:
Hi, i need apply two different hyperlink:hover style cause by different background color. what i do is, i put css external link as a:hover.paging { color: #cc0000; text-decoration: none;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.