Dave,
Thanks for the reply, but this won't work in this instance.

Further to a previous post, I have a page with CfTree, when one of the items
is dbl-clicked, I jump to a page with a form.
The CFTreeItemKey value gets put into a form variable and the form is
automatically submitted (<body onload="submit">) to an ISAPI DLL I've
written.

This breaks the "Back" button as when the user clicks back from my DLL they
go back to the auto submit form.

I was hoping to add some code to this page which looks to see where the user
has come from and go on to whatever page necessary.

i.e  <Cfif FindNocase("finduserby",#HTTP_REFERER#) NEQ 0> 
        We have come from the CFtree page so go on the the DLL
        Body and Form stuff goes here.
        Cfelse
        We have come back from the DLL so
        <Body onload="history.go(-1)">
        </Body>
        </Cfif>

Now I can't interact with CF Session vars from the DLL so I was hoping to
use
HTTP_REFERER but CFTREE (although it has to be within a CFForm) doesn't
cause a Form Submit so it looks like I'm stuck.
I may have to look at creating a CFX in Delphi unless someone has a better
idea.

Regards
Michael O'Reilly
TransAer




> Is there any way of finding out the page we have just come
> from even when we haven't come from a submitted form (so
> HTTP_REFERER is not an option).

There's no guaranteed way to do this using CGI variables, but you could
track this information in a Session variable, changing the value of the
variable on every page request.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
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.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
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.

Reply via email to