ElkArte Community

Title: Some useful expand pages
Post by: emanuele on June 14, 2014, 07:34:54 am
The pagination is stupid.
The expand expands only starting from the lower page numbers, so if you are at page 1 and want to go to page 140 of a topic with 250 pages you have to click on expand several times.

The first approach I tried was a rolling pagination, but apparently it was not so friendly.

I remember vB or IPB se a dropdown allowing you to insert the page number, but I think the days of "type" are gone, so I think the best alternative is a way to let the user scroll or something the pages until he reaches the one he needs.
Title: Re: Some useful expand pages
Post by: emanuele on July 25, 2014, 08:21:08 am
What would you think about something like the attachment?
Drawback: the slider requires jQueryUI... :-\
Title: Re: Some useful expand pages
Post by: Jorin on July 25, 2014, 08:37:09 am
Hm... I think the slider is not wide enough to be exact enough to handle it when you have a lot of pages. Or will it get wider and wider?

What about simply make the dots (...) as button too and when you click it you get a list of site numbers (in blocks of ten sites)?
Title: Re: Some useful expand pages
Post by: [SiNaN] on July 28, 2014, 05:32:33 am
Quote from: emanuele – I remember vB or IPB se a dropdown allowing you to insert the page number, but I think the days of "type" are gone, so I think the best alternative is a way to let the user scroll or something the pages until he reaches the one he needs.
I don't think anything can give the flexibility and practicality of typing in the page number. So I would still go with that option.
Title: Re: Some useful expand pages
Post by: emanuele on July 28, 2014, 08:16:58 am
I just found a couple of nice things:
http://www.developerdrive.com/2012/07/creating-a-slider-control-with-the-html5-range-input/
http://html5tutorial.info/html5-range.php
That is actually pretty interesting also for other things I think. Not as flexible as jQueryUI, but much less bloated either.

Yep, I agree the typing should be there.
Title: Re: Some useful expand pages
Post by: Jokerâ„¢ on August 03, 2014, 09:46:20 am
@emanuele Why not simply pop out the UI you have shown in attachment using JS, and when user submits the pop up, pass on the values to PHP...

A simple slider script to mesh up with jQuery - http://loopj.com/jquery-simple-slider/
Title: Re: Some useful expand pages
Post by: emanuele on August 03, 2014, 09:49:38 am
Yep, that's the general idea, at the moment I'm just too lazy to code it. :P (I found a sudoku game and started playing it. lol)
Title: Re: Some useful expand pages
Post by: Jokerâ„¢ on August 03, 2014, 09:56:59 am
Quote from: emanuele – Yep, that's the general idea, at the moment I'm just too lazy to code it. :P (I found a sudoku game and started playing it. lol)
Lol try this one 2048 (http://gabrielecirulli.github.io/2048/)
Title: Re: Some useful expand pages
Post by: emanuele on August 03, 2014, 10:05:25 am
Done, done. :P