Forum Moderators: coopster

Message Too Old, No Replies

recordset paging+linking to self

passing url variable to self page with recordset paging

         

oates

10:36 pm on Sep 19, 2005 (gmt 0)



I've built a dynamic page with recordset paging, loading 10 thumbnails dynamically per page. Each thumbnail has a link with a url variable (?image=whatever.jpg) to load a larger image on the page. This works great with just one page eg. page.php?image=whatever.jpg, but when I page to the next page, it's nolonger page.php, so when a thumb is clicked it loads up the original page with the image, and you have to scroll through the records to get back to where you were.

I've tried binding the recordset paging link to the thumbnail, and can get it to work, but as you click thumbs, the url is not refreshed, the variable is just added to the end of the previous url, so if you click a few thumbs you end up with a very long url.

I hope this makes sense?

any help or other ideas of how to do this would be great.

Thanks,
-Jackson

[edited by: coopster at 10:51 pm (utc) on Sep. 19, 2005]

[edited by: ergophobe at 11:12 pm (utc) on Sep. 22, 2005]
[edit reason] removed url per TOS [webmasterworld.com] [/edit]

coopster

12:02 am on Sep 27, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, oates.

How are you building the url link in your script? That is what seems to be the problem ... if I understand you correctly.