Back button with querystring parameters

1 view
Skip to first unread message

Tim

unread,
Nov 5, 2008, 4:57:23 PM11/5/08
to iWebKit
The back button usually looks like this in code:

<td class="buttonfield">
<a href="/Products">Products</a>
</td>

However, lets say when I went to the Products page the first time, I
passed in 2 querystring parameters as such: Products?id=3&section=8

I then link to the details page. How do I go back to the correct
Products page with the querystring parameters? I can't hard code the
parameters. Must I pass the id/section to the products page as well?
This can be a huge burden doing this for every page especially if I
have a lot of parameters for certain pages.

Tim

Winterboard

unread,
Nov 5, 2008, 5:12:51 PM11/5/08
to iWebKit
You could simply try using javascript. Try history.back

Tim

unread,
Nov 6, 2008, 8:11:32 AM11/6/08
to iWebKit
Yes, but then you would have to have the button text be generic like
Back.

It would make a lot more sense to be able to apply a name of a product
to go back to the product on the previous page.
> > Tim- Hide quoted text -
>
> - Show quoted text -

Winterboard

unread,
Nov 6, 2008, 10:55:47 AM11/6/08
to iWebKit
Yeah... I'm sorry but I know no other way than manually...
Reply all
Reply to author
Forward
0 new messages