[ 7 posts ]

Terri Layman

  • Username: terrilyn
  • Joined: Mon May 18, 2009 5:34 am
  • Posts: 46
  • Location: Ferdinand, IN
  • Offline
  • Profile
Tags:

Pagination

Post Posted: Tue Sep 06, 2011 10:08 am
+0-
Am I missing something, or is there no way to add a second paginator at the bottom of the querybuilder table? (my boss requested it) I can instantiate an entirely new paginator down there, but the two don't tie together, causing a bit of confusion.

Also, if you follow a link off the table and come back to your results, it doesn't bring you back to where you left. So if I leave page seven, and hit "back" on my browser, I want to go back to page seven. Right now I go to page one.

Any suggestions?

Thanks,
-Terri

John Lindal

YUI Contributor

  • Username: jafl
  • Joined: Mon Nov 02, 2009 2:33 pm
  • Posts: 358
  • Location: Los Angeles, CA
  • Twitter: jafl5272
  • GitHub: jafl
  • Gists: jafl
  • Offline
  • Profile
Tags:

Re: Pagination

Post Posted: Tue Sep 06, 2011 10:46 am
+0-
Since YUI widgets have a single bounding box, it's not easy to render the paginator into multiple locations. You can take a look at my multi-object example for one way around this restriction: http://yuilibrary.com/gallery/show/multiobject

The state of the JavaScript widgets on the page is not normally stored in browser history. If you want to do so, then you need to use the YUI 3 History module.

Terri Layman

  • Username: terrilyn
  • Joined: Mon May 18, 2009 5:34 am
  • Posts: 46
  • Location: Ferdinand, IN
  • Offline
  • Profile

Re: Pagination

Post Posted: Mon Sep 12, 2011 12:23 pm
+0-
John -

Your suggestion on the multiobject worked a peach! Now I have two of them going at the same time.

However, every time I try to figure out the differences between the tabview example on that History module and what I would need to do for the paginator, I get lost.

If I can get something set up tomorow on a publicly availible site, could you take a look at what I have now, and give me a few hints on what I need to do?

Thanks,
-Terri

John Lindal

YUI Contributor

  • Username: jafl
  • Joined: Mon Nov 02, 2009 2:33 pm
  • Posts: 358
  • Location: Los Angeles, CA
  • Twitter: jafl5272
  • GitHub: jafl
  • Gists: jafl
  • Offline
  • Profile
Tags:

Re: Pagination

Post Posted: Mon Sep 12, 2011 12:25 pm
+0-
I can try, but I'm not very familiar with the History module. You might try posting to the "Using YUI 3.x Components" forum.

Terri Layman

  • Username: terrilyn
  • Joined: Mon May 18, 2009 5:34 am
  • Posts: 46
  • Location: Ferdinand, IN
  • Offline
  • Profile

Re: Pagination

Post Posted: Tue Sep 13, 2011 5:53 am
+0-
John,

Here you go. I'll also put this in the thread you suggested.

http://www.besthf.com/bcassets/pagTest/pagTest.htm

Thanks,
-Terri

John Lindal

YUI Contributor

  • Username: jafl
  • Joined: Mon Nov 02, 2009 2:33 pm
  • Posts: 358
  • Location: Los Angeles, CA
  • Twitter: jafl5272
  • GitHub: jafl
  • Gists: jafl
  • Offline
  • Profile

Re: Pagination

Post Posted: Wed Sep 14, 2011 9:28 am
+0-
That URL asks me for a login.

I think all you have to do is get the state from the paginator and store it as part of the history. Then when the user clicks "Back", use the state to set up the paginator.

Terri Layman

  • Username: terrilyn
  • Joined: Mon May 18, 2009 5:34 am
  • Posts: 46
  • Location: Ferdinand, IN
  • Offline
  • Profile

Re: Pagination

Post Posted: Tue Sep 27, 2011 9:38 am
+0-
John,

Thought I'd let you know that the solution my boss and I came up with was to launch the search results in new windows. (It's a list of job appliants, so we're launching our online applications in new windows so that they can be compared side by side.)

Thanks for your help though!

-Terri
  [ 7 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum