I've heard that there is a server-side redirect function for CFMX... I haven't been
able to track it down and I remember hearing something about it here. Would someone
have the syntax for this handy?
Thanks,
Jeff Garza
__
I've heard that there is a server-side redirect function for
CFMX... I haven't been able to track it down and I remember
hearing something about it here. Would someone have the
syntax for this handy?
cfscript
getPageContext.forward('somewhere.cfm');
/cfscript
Dave Watts, CTO, Fig Leaf
cfscript
getPageContext.forward('somewhere.cfm');
/cfscript
Actually getPageContext is a method, not an instance, so you need the ()
cfscript
getPageContext().forward('somewhere.cfm');
/cfscript
_
Pete Freitag
CTO, CFDEV.COM
http://www.cfdev.com/
cfscript
getPageContext.forward('somewhere.cfm');
/cfscript
Actually getPageContext is a method, not an instance, so
you need the ()
cfscript
getPageContext().forward('somewhere.cfm');
/cfscript
D'oh! Thanks for the correction!
Dave Watts, CTO, Fig Leaf Software
for ColdFusion
http://www.macromedia.com/support/forums/team_macromedia/
- Original Message -
From: Dave Watts [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, August 19, 2002 12:36 PM
Subject: RE: Server Side Redirects in CFMX
cfscript
getPageContext.forward('somewhere.cfm
Subject: RE: Server Side Redirects in CFMX
I've heard that there is a server-side redirect function for
CFMX... I haven't been able to track it down and I remember
hearing something about it here. Would someone have the
syntax for this handy?
cfscript
getPageContext.forward('somewhere.cfm
, August 19, 2002 7:15 PM
To: CF-Talk
Subject: RE: Server Side Redirects in CFMX
Hi,
Whats the diff between cflocation and
getPageContext().forward('somewhere.cfm')
or is it just the same thing done in two diff ways..
any pro's or con's..
cheers
Joel
-Original Message
cflocation is a client-side redirect while .forward is a server-side
one.
Just to elaborate on that, a client side redirect is done by sending a
response back to the client (usually your browser) telling it to make a
request for a different page.
Where a server side redirect is done by
]]
Sent: Tuesday, 20 August 2002 12:36
To: CF-Talk
Subject: RE: Server Side Redirects in CFMX
cflocation is a client-side redirect while .forward is a server-side
one.
Just to elaborate on that, a client side redirect is done by sending a
response back to the client (usually your browser) telling
so i assume it is safe to use [server side redirects] in CF without any
known problems or limitations.
The only limitation is that your code will not be backwards compatible with
CF5 and below, otherwise I haven't seen any problems with using it.
_
10 matches
Mail list logo