--============_-1256672295==_ma============
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
Content-Transfer-Encoding: quoted-printable
On 4/10/00, Jeffrey Cohen penned:
>How do I implement a 'back' button from a page that shows the detail
>results of a drill down, so I go back to list (which is the result of a
>query)?
Well, I didn't see any Back buttons on that site, but...
Whatever parameter[s] you pass to your query, you have to pass to=20
whatever link you click, then pass back to the query page through=20
your back button or link. So, if you have 3 hidden input fields:
location
cuisine
restaurant_name
When your list of restaurants come up, and you have a link to each=20
one, pass the parameters as a query string:
href=3Drestaurant.cfm?id=3D#id#&location=3D#location#&cuisine=3D#cuisine#&re=
st=20
aurant_name=3D#restaurant_name#
That may have wrapped, but you get the idea.
Then you can have a back button with hidden input fields, or a text link bac=
k.
href=3Dqueryresults.cfm?location=3D#location#&cuisine=3D#cuisine#&restaurant=
=20
_name=3D#restaurant_name#
Notice you won't need to pass the restaurant ID back, just the=20
parameter[s] that the query needs.
Keep in mind that items such as the restaurant name that people type=20
in that may have spaces, etc. you will need to URL Encode when you=20
place them into a query string:
restaurant_name=3D#URLEncodedFormat(restaurant_name)#
Bud Schneehagen - Tropical Web Creations
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
--============_-1256672295==_ma============
Content-Type: text/enriched; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<smaller>On 4/10/00, Jeffrey Cohen penned:
<excerpt>How do I implement a 'back' button from a page that shows the
detail
results of a drill down, so I go back to list (which is the result of
a
query)?
</excerpt>
Well, I didn't see any Back buttons on that site, but...
Whatever parameter[s] you pass to your query, you have to pass to
whatever link you click, then pass back to the query page through your
back button or link. So, if you have 3 hidden input fields:
location
cuisine
restaurant_name
When your list of restaurants come up, and you have a link to each one,
pass the parameters as a query string:
href=3Drestaurant.cfm?id=3D#id#&location=3D#location#&cuisine=3D#cuisine#&re=
staurant_name=3D#restaurant_name#
That may have wrapped, but you get the idea.
Then you can have a back button with hidden input fields, or a text
link back.
href=3Dqueryresults.cfm?location=3D#location#&cuisine=3D#cuisine#&restaurant=
_name=3D#restaurant_name#
Notice you won't need to pass the restaurant ID back, just the
parameter[s] that the query needs.
Keep in mind that items such as the restaurant name that people type in
that may have spaces, etc. you will need to URL Encode when you place
them into a query string:
restaurant_name=3D#URLEncodedFormat(restaurant_name)#
</smaller>
Bud Schneehagen - Tropical Web Creations
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
--============_-1256672295==_ma============--
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.