[thelist] cf redirection
Palyne Gaenir
palyne at sciencehorizon.com
Mon Jul 17 12:33:15 CDT 2000
Hi Aaron,
I dunno that I have the best method but when I need to do this, I do
something like this:
<cflocation url="page.cfm?formtype=menu¬e=upd">
And then on the switch section for the menu page I just insert
something like
<cfoutput>
<cfif IsDefined(NOTE)>
<cfif #NOTE# IS 'upd'>
<p>Your record has been updated.</p>
<cfelseif #NOTE# IS 'add'>
<p>Your record has been added.</p>
<cfelseif #NOTE# IS 'del'>
<p>That record is gone, gone, gone.</p>
</cfif>
</cfif>
</cfoutput>
Hope that helps.
Palyne
On 17 Jul 2000, at 11:22, Czechowski, Aaron wrote:
From: "Czechowski, Aaron" <aczechowski at towson.edu>
To: "Thelist (E-mail)" <thelist at lists.evolt.org>
Date sent: Mon, 17 Jul 2000 11:22:10 -0400
Subject: [thelist] cf redirection
Send reply to: thelist at lists.evolt.org
i have a simple cf admin page using cfswitch (thanks to palyne's tip a few
weeks ago) with four cases. most of the cases do a very specific db action
(e.g., delete a record, update a record, etc) - and all I want to do is
flash a message saying "record updated" then redirect back to the main page.
i currently have this funky snippet:<!--
<b>Record Updated!</b> Redirecting to <a href="pcorder.cfm">main
page</a>....
<img src="images/1px000.gif" width="0" height="0"
onLoad="window.location='pcorder.cfm';">
which isn't exactly smooth. it redirects too quickly to see what it's
doing. i suppose i could use a js alert or something, or write a quick js
function to count a few seconds before redirecting. and i'm guessing i
can't use http-equiv="refresh". does anyone know of a way to redirect
using CF? or perhaps an altogether different way for processing the action?
thanks
aaron :)
Aaron M. Czechowski, MCP
Senior Client Services Associate
Computing and Network Services
Towson University
www.towson.edu/cans
www.towson.edu/~aczech
More information about the thelist
mailing list