I believe it's a 302.

http://www.petefreitag.com/item/359.cfm  <-- good info btw that
answers most of the questions that this thread has raised (except for
Dave's suggestion regarding a true server side redirect using
GetPageContext().forward()...but that's easily enough Googled) :)

On 12/7/05, Snake <[EMAIL PROTECTED]> wrote:
> Well it is actually creating a temorary redirtection header, which is a 403
> I think.
> So that is the only thing that gets sent back to the client.
>
> -----Original Message-----
> From: Ben Nadel [mailto:[EMAIL PROTECTED]
> Sent: 07 December 2005 22:51
> To: CF-Talk
> Subject: RE: cfLOCATION - what's it doing??
>
> Snake, Jon,
>
> While CFLocation IS coldfusion, it actually goes go across to the browser. I
> believe it sends a meta redirect or something of that nature. So it IS cold
> fusion, but it is NOT server side, as far as I understand.
>
> Because of this, CFLocation will not work if you have already flushed
> content to the browser (via  CFFlush or some other method) since at that
> point it is too late for the server to update the headers with the redirect.
>
> So, if its just not working, try putting some cfsilent tags around the code
> surrounding the CFLocation and make sure you are not writing to the browser
> first.
>
> Sorry if there is some misinformation there, but I think that's the jist of
> it.
>
> ........................
> Ben Nadel
> Web Developer
> Nylon Technology
> 6 West 14th Street
> New York, NY 10011
> 212.691.1134
> 212.691.3477 fax
> www.nylontechnology.com
>
> "Vote for Pedro"
>
> -----Original Message-----
> From: Snake [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 07, 2005 5:44 PM
> To: CF-Talk
> Subject: RE: cfLOCATION - what's it doing??
>
> Jon,
>
> Javascript is client side, cflocation is coldfusion, so it is server side.
> If you have a cflocation in a page, it redirects to another page, so thus
> your javascript never gets sent to the client, thus it doesn't run.
> If you want the redirect to happen on the client after that bit of
> javascript has execute, then you will need to do that in JS as well.
>
> --
> snake
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226506
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to