Skip to main content
Inspiring
February 20, 2009
Question

Horizontal Looper - Search - Navigation Bar

  • February 20, 2009
  • 2 replies
  • 526 views
Hi,

I am using Tom Mucks's Horizontal Looper in together with a searchform.
The searchform links to a page with this looper and it works fine.
The DW3 Recordset Paging Navigation Bar however doesn't.
Apparently it doesn't update the searchword when going to the next set of thumbnails.
I can get all the items belonging to the searchword but all on one page.
What should I do to get the Recordset Paging Navigation Bar to work here?

I added some of the standard code below.

Any help is greatly appreciated.

Jos

This topic has been closed for replies.

2 replies

Inspiring
February 23, 2009
Thanks a lot Tom,

I tried this allready but apparently I made a mistake. I will try again.

Jos
Inspiring
February 23, 2009
If you want the search form to work with the search parameters appended to
links, you have to use the GET method in your form and filter the recordset
by $_GET instead of $_POST values.

Tom Muck

"arnhemcs" <webforumsuser@macromedia.com> wrote in message
news:gnlrgc$ij8$1@forums.macromedia.com...
> Hi,
>
> I am using Tom Mucks's Horizontal Looper in together with a searchform.
> The searchform links to a page with this looper and it works fine.
> The DW3 Recordset Paging Navigation Bar however doesn't.
> Apparently it doesn't update the searchword when going to the next set of
> thumbnails.
> I can get all the items belonging to the searchword but all on one page.
> What should I do to get the Recordset Paging Navigation Bar to work here?
>
> I added some of the standard code below.
>
> Any help is greatly appreciated.
>
> Jos
>
>
>
> <table border="0">
> <tr>
> <td><?php if ($pageNum_rsGames > 0) { // Show if not
> first page ?>
> <a href="<?php
> printf("%s?pageNum_rsGames=%d%s",
> $currentPage, 0, $queryString_rsGames); ?>"><img src="First.gif"
> border="0"
> /></a>
> <?php } // Show if not first page ?>
> </td>
> <td><?php if ($pageNum_rsGames > 0) { // Show if not
> first
> page ?>
> <a href="<?php printf("%s?pageNum_rsGames=%d%s",
> $currentPage, max(0, $pageNum_rsGames - 1), $queryString_rsGames);
> ?>"><img
> src="Previous.gif" border="0" /></a>
> <?php } // Show if not first page ?>
> </td>
> <td><?php if ($pageNum_rsGames < $totalPages_rsGames) {
> //
> Show if not last page ?>
> <a href="<?php printf("%s?pageNum_rsGames=%d%s",
> $currentPage, min($totalPages_rsGames, $pageNum_rsGames + 1),
> $queryString_rsGames); ?>"><img src="Next.gif" border="0" /></a>
> <?php } // Show if not last page ?>
> </td>
> <td><?php if ($pageNum_rsGames < $totalPages_rsGames) {
> //
> Show if not last page ?>
> <a href="<?php printf("%s?pageNum_rsGames=%d%s",
> $currentPage, $totalPages_rsGames, $queryString_rsGames); ?>"><img
> src="Last.gif" border="0" /></a>
> <?php } // Show if not last page ?>
> </td>
> </tr>
> </table>
> Je ziet hier game <strong><?php echo ($startRow_rsGames + 1)
> ?></strong> tot en met <strong><?php echo min($startRow_rsGames +
> $maxRows_rsGames, $totalRows_rsGames) ?></strong> van totaal <strong><?php
> echo
> $totalRows_rsGames ?></strong> Rimon onderwerpen
> <?php } // Show if recordset not empty ?>
> <br />
> <br />
>
>
>
> $_POST['trefwoord']
>