ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 4th, 2004, 02:10 PM
rfountai rfountai is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 rfountai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #2  
Old August 4th, 2004, 02:29 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,626 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 6 m 34 sec
Reputation Power: 53
Yes, this (and much more) are available as CGI variables. Do a cfdump of the CGI scope and you'll see it all.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > How to specify the URL and params to return to


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway