Tom,
Cold fusion by default does not send anything to the browser until it is done 
processing the page.  CFLocation at the end says "Forget about everything that you've 
created so far and redirect the user to this other page."

You can do two things (among others, I am sure):

If you are using CF 5.0, you can use <CFFlush> after the javascript gig to force CF to 
send the output to the browsers, BUT I would think that a subsequent CFLocation will 
leave output that is already sent to the browser.

Your other option is to use a flag that you pass on the url to the page you are 
CFLocating to and have that page load whatever page you were trying to load by use of 
javascript earlier in the first page.  Something like <CFLocation 
URL="mynewpage.cfm?openotherpage=1"> and have mynewpage.cfm check 
IsDefined('URL.OpenOtherPage') and do the javascript there.

Ross.

"Schreck, Tom" wrote:

> I opened up a second window using javascript for the constructed http request and 
>it's still not working.  In essence I need to kick off a parellel process for this 
>constructed http request, but the cflocation is killing it.  How can the cflocation 
>affect code that's already been parsed?  I'm requesting a new page via cfmodule 
>before I get to the cflocation.  The cflocation is at the very end of my code.
>
> -----Original Message-----
> From: Nate Nielsen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 4:53 PM
> To: [EMAIL PROTECTED]
> Subject: Re: cflocation issue
>
> What is happening -->
>
> You request the page from cf
> cf processes (first page) to create an output to send to browser
> cf gets to the cflocation and processes a new page
> cf processes (new page) to create an output to send to browser
> the new page is sent to browser
>
> the iframe code is never even sent to the browser.  =D
>
> instead of using cflocation, use javascript to change the page when it
> loads.  =P
>
> Nate Nielsen
> [EMAIL PROTECTED]
> 817.726.8644
>
> ----- Original Message -----
> From: "Schreck, Tom" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 19, 2002 4:08 PM
> Subject: cflocation issue
>
> I have a page that constructs a http url then submits the url to an iframe
> for separate processing.  Then a little further down the main page I have a
> cflocation to another spot.  The url submitted to the iframe never
> processes, however, if I cfabort before the cflocation tag, the url
> submitted to the iframe finishes its processing.  I thought an iframe is
> it's own processor space, in essence, launching another window and would not
> be affected by what happens on the source page?  Am I overlooking the
> obvious?
>
> Thanks - Tom
>
> Tom Schreck
> [EMAIL PROTECTED]
> 817-252-4900
>
> I have not failed.  I've found 10,000 ways that won't work.
>
> - Thomas Edison
>
> -------------------------------------------------------------------------
> This email server is running an evaluation copy of the MailShield anti-
> spam software. Please contact your email administrator if you have any
> questions about this message. MailShield product info: www.mailshield.com
>
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
>
> -------------------------------------------------------------------------
> This email server is running an evaluation copy of the MailShield anti-
> spam software. Please contact your email administrator if you have any
> questions about this message. MailShield product info: www.mailshield.com
>
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
>
> -------------------------------------------------------------------------
> This email server is running an evaluation copy of the MailShield anti-
> spam software. Please contact your email administrator if you have any
> questions about this message. MailShield product info: www.mailshield.com
>
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to