Server Side Redirects in CFMX

2002-08-19 Thread 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?

Thanks,

Jeff Garza

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Server Side Redirects in CFMX

2002-08-19 Thread Dave Watts

 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 Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Server Side Redirects in CFMX

2002-08-19 Thread Pete Freitag

 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/ 
__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Server Side Redirects in CFMX

2002-08-19 Thread Dave Watts

  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
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Server Side Redirects in CFMX

2002-08-19 Thread Adam Churvis

And remember: it throws an I/O error if the page being redirected contains
FORM-scoped variables.

Respectfully,

Adam Phillip Churvis
Advanced Intensive ColdFusion MX Training
http://www.ColdFusionTraining.com
E-mail:  [EMAIL PROTECTED]
Phone:   770-446-8866
Team Macromedia Volunteer 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');
   /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
 http://www.figleaf.com/
 voice: (202) 797-5496
 fax: (202) 797-5444
 
__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Server Side Redirects in CFMX

2002-08-19 Thread Joel Nath

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-
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 20 August 2002 2:21
To: CF-Talk
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');
/cfscript

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

__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Server Side Redirects in CFMX

2002-08-19 Thread Matt Liotta

cflocation is a client-side redirect while .forward is a server-side
one.

Matt Liotta
President  CEO
Montara Software, Inc.
http://www.montarasoftware.com/
V: 415-577-8070
F: 415-341-8906
P: [EMAIL PROTECTED]

 -Original Message-
 From: Joel Nath [mailto:[EMAIL PROTECTED]]
 Sent: Monday, 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-
 From: Dave Watts [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 20 August 2002 2:21
 To: CF-Talk
 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');
 /cfscript
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 voice: (202) 797-5496
 fax: (202) 797-5444
 
 
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Server Side Redirects in CFMX

2002-08-19 Thread Pete Freitag

 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 forwarding the request to a
different location on the server.

Some really old browsers won't support client side redirects (it was added
to HTTP 1.1, so browsers that use HTTP 1.0 won't recognize the header).
Server side redirects are faster than client side redirects because its all
done on the server.

_
Pete Freitag
CTO, CFDEV.COM
ColdFusion Developer Resources
http://www.cfdev.com/


__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Server Side Redirects in CFMX

2002-08-19 Thread Joel Nath

Thanks.. for the info..:)

I have used server-side redirects in other languages (.eg ASP).. and
understand its capability...

so i assume it is safe to use it in CF without any known problems or
limitations.

cheers
Joel

-Original Message-
From: Pete Freitag [mailto:[EMAIL PROTECTED]]
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 it to make a
request for a different page.

Where a server side redirect is done by forwarding the request to a
different location on the server.

Some really old browsers won't support client side redirects (it was added
to HTTP 1.1, so browsers that use HTTP 1.0 won't recognize the header).
Server side redirects are faster than client side redirects because its all
done on the server.

_
Pete Freitag
CTO, CFDEV.COM
ColdFusion Developer Resources
http://www.cfdev.com/



__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Server Side Redirects in CFMX

2002-08-19 Thread Pete Freitag

 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.

_
Pete Freitag
CTO, CFDEV.COM
ColdFusion Developer Resources
http://www.cfdev.com/


__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists