Hotmail style paging

Hotmail style paging

am 01.10.2007 11:15:27 von Scott Wertz

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

Re: Hotmail style paging

am 01.10.2007 15:33:32 von petersprc

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 wrote:
> 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

Re: Hotmail style paging

am 01.10.2007 15:44:23 von Scott Wertz

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 wrote:
>> 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.

Re: Hotmail style paging

am 01.10.2007 20:25:58 von nigel_moss

While the city slept, Tyno Gendo (nobody@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. nigel@DOG.nigenet.org.uk | Take the DOG. out!
"Your mother ate my dog!", "Not all of him!"

Re: Hotmail style paging

am 02.10.2007 16:45:02 von Scott Wertz

nice.guy.nige wrote:
> While the city slept, Tyno Gendo (nobody@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.