> > This is incorrect. cflocation simply sends a HTTP 302 
> > "Found" statuscode to the browser together with a 
> > Location header. How could the URL one sees in the 
> > browser possibly change if nothing was send to the 
> > browser?
> 
> This is my understanding:
> Of course something is sent to the browser, but AFTER 
> the cflocation happens. Say for example you have page1, 
> page2, and page3. Page1 is a form, page2 processes the 
> form, and page3 is a thank you page.
> 
> Server side (cflocation):
> - user submits page1
> - server processes page2
> - server requests page3
> - server processes page3
> - server returns page3
> 
> Client side (using JS or HTML):
> - user submits page1
> - server processes page 2
> - server returns page2
> - browser requests page3
> - server processes page3
> - server returns page3
> 
> Maybe I'm wrong, but I don't think so...

When you use the CFLOCATION tag, the server sends back a Location header.
The browser doesn't display the page which contains the Location header, but
it does receive it. It then requests the URL specified in the Location
header. So, using your step-by-step approach, here's what happens:

- user submits page 1 thereby requesting page 2
- server processes page 2
- server returns page 2
- browser reads Location header, which says "get page 3"
- browser requests page 3
- server processes page 3
- server returns page 3 and browser displays it

This is very easy to see, if you use a recording proxy.

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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to