
August 4th, 2004, 02:10 PM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
How to specify the URL and params to return to
I am using a Delete page from several pages in my application. For example, I have a detail page which has all records (full_list.cfm) and a page which has a subset, based on a criteria (partial_list.cfm). Both of these pages have a delete record option. So, they both go to the (delete.cfm) page, passig the appropriate record_id to delete. The problem is, I want to go back to the appropriate page (and, of course, now see that the deleted row is gone), but I can't figure out how to pass the correct page name so that I have a page to return to with the CFLOCATION statement after my delete is complete.
Is there a system variable that has the URL (including any URL parameters passed) of a page? In other words, when I go to my partial_list.cfm page the URL will be something like partial_list.cfm?lastname=value, BUT my full_list.cfm page doesn't have any parameters. Is there a way I can return to either of these after my delete, and have it contain both the URL and parameter like <CFLOCATION URL=#magic variable#> This #magic variable# would either contatin partial_list.cfm?lastname=value or full_list.cfm, depending upon which page I came from. Am I explaining this clearly?
Thanks!
Rick
|