I just came across an incredibly simple technique that might be useful
to others so I thought I'd share.
I'm building a tool that's a HUGE wizard (about 90-100 fuseactions long,
when it's finished it'll have about 150-200 fuseactions). Anyway, I
wanted a way to make it so the user could leave the site and pick up
where they left off the next time they logged in. Which as it turns out
is very simple with Fusebox because of the <cf_formurl2attributes>
I did this with client variables, which only 'really' works if your
users have cookies turned on, you could do the same thing another way if
cookies are a problem.
1) At the top of a Fuseaction (or in your Application.cfm) add this one
line:
<cfset client.bookmark="#cgi.script_name#?#request.attributeslist#">
2) On the default Fuseaction of your home application (you only really
need to call this code once, so you don't have to put this in each
circuit, just at the entry point of the entire application) include a
fuse with this code:
<cfif isdefined("client.bookmark")>
<cfset tempbookmark=client.bookmark>
<cfset DeleteClientVariable("bookmark")>
<cflocation url="#tempbookmark#" addtoken="no">
</cfif>
The idea is that each page it'll simply save where they were last. Then
if they leave, the next time they come back it'll return them to that
URL.
Steve Nelson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists