cflocation mystery

2014-02-02 Thread Rob Voyle
) cfif fileExists(newUrl) is yes cflocation url=#newUrl# cfelse cflocation url=http://www.mydomain.com; /cfif /cfif Works fine if the file exists but throws an error if the file doesn't exist rather than redirecting

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
cflocation url=#newUrl# cfelse cflocation url=http://www.mydomain.com; /cfif /cfif Works fine if the file exists but throws an error if the file doesn't exist rather than redirecting. Also which log file would have the error

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
notFoundUrl contains .html cfset newUrl=http://www.mydomain.com; replace(notFoundUrl,.html,.cfm) cfif fileExists(newUrl) is yes cflocation url=#newUrl# cfelse cflocation url=http://www.mydomain.com; /cfif

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
.html cfset newUrl=http://www.mydomain.com; replace(notFoundUrl,.html,.cfm) cfif fileExists(newUrl) is yes cflocation url=#newUrl# cfelse cflocation url=http://www.mydomain.com; /cfif /cfif

Re: cflocation mystery

2014-02-02 Thread Rob Voyle
Hi Timothy Instead of redirecting to: mydomain.com cflocation url=http://www.mydomain.com; It is throwing an error rather than redirecting. How do I redirect? Rob On 2 Feb 2014 at 11:56, Timothy Heald wrote: It's no mystery, that's the correct response. Trap the 404 error for html

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
What's the error? On Feb 2, 2014 12:09 PM, Rob Voyle robvo...@voyle.com wrote: Hi Timothy Instead of redirecting to: mydomain.com cflocation url=http://www.mydomain.com; It is throwing an error rather than redirecting. How do I redirect? Rob On 2 Feb 2014 at 11:56, Timothy Heald

Re: cflocation mystery

2014-02-02 Thread Russ Michaels
the following to my notFound.cfm file: cfif notFoundUrl contains .html cfset newUrl=http://www.mydomain.com; replace(notFoundUrl,.html,.cfm) cfif fileExists(newUrl) is yes cflocation url=#newUrl# cfelse cflocation url=http

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
Add the file. Like index.cfm our what ever On Feb 2, 2014 12:09 PM, Rob Voyle robvo...@voyle.com wrote: Hi Timothy Instead of redirecting to: mydomain.com cflocation url=http://www.mydomain.com; It is throwing an error rather than redirecting. How do I redirect? Rob On 2 Feb 2014

Re: cflocation mystery

2014-02-02 Thread Rob Voyle
Hi Timothy Which log would the error be in. I can't find the error in any of the logs. The site is public and only displays a generic error template rather than the specific error. Rob On 2 Feb 2014 at 11:58, Timothy Heald wrote: What's the error message? On Feb 2, 2014 11:42 AM, Rob

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
notFoundUrl contains .html cfset newUrl=http://www.mydomain.com; replace(notFoundUrl,.html,.cfm) cfif fileExists(newUrl) is yes cflocation url=#newUrl# cfelse cflocation url=http://www.mydomain.com

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
What version of cf? On Feb 2, 2014 12:19 PM, Rob Voyle robvo...@voyle.com wrote: Hi Timothy Which log would the error be in. I can't find the error in any of the logs. The site is public and only displays a generic error template rather than the specific error. Rob On 2 Feb 2014 at

Re: cflocation mystery

2014-02-02 Thread Cameron Childress
to my notFound.cfm file: cfif notFoundUrl contains .html cfset newUrl=http://www.mydomain.com; replace(notFoundUrl,.html,.cfm) cfif fileExists(newUrl) is yes cflocation url=#newUrl# cfelse cflocation url=http

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
,.html,.cfm) cfif fileExists(newUrl) is yes cflocation url=#newUrl# cfelse cflocation url=http://www.mydomain.com; /cfif /cfif Works fine if the file exists but throws an error if the file doesn't

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
contains .html cfset newUrl=http://www.mydomain.com; replace(notFoundUrl,.html,.cfm) cfif fileExists(newUrl) is yes cflocation url=#newUrl# cfelse cflocation url=http://www.mydomain.com; /cfif

Re: cflocation mystery

2014-02-02 Thread Bobby
Exception.log On 2/2/14, 12:18 PM, Rob Voyle robvo...@voyle.com wrote: Hi Timothy Which log would the error be in. I can't find the error in any of the logs. The site is public and only displays a generic error template rather than the specific error. Rob On 2 Feb 2014 at 11:58, Timothy

Re: cflocation mystery- solved

2014-02-02 Thread Rob Voyle
Thanks guys needed the absolute path in fileExist Rob ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: cflocation mystery- solved

2014-02-02 Thread Brian Cain
You should also be retiring a 301 status code to the client. This makes a difference for SEO purposes. In CF7 or before you would need to use the cfheader tag. CF8 and on, you can add the status code attribute to the cflocation tag. Sent from my iPhone On Feb 2, 2014, at 11:51 AM, Rob

RE: cflocation and long urls

2013-08-28 Thread Kevin Parker
August 2013 7:24 AM To: cf-talk Subject: cflocation and long urls Hi folks I have a long encrypted url stored in a database: the cgi.query_string is something like YJShGG8kxBWgJKOlo2z4oTM8jEanxnGNBzw+QBQw8JBtuiQ8Oyn6tc6qmbd+E7W vcbfncSF/pq2ttDOdegKnxA== It works fine if i manually copy

RE: cflocation and long urls

2013-08-28 Thread Russ Michaels
on an older system on our Intranet. ++ Kevin Parker ++ -Original Message- From: Rob Voyle [mailto:robvo...@voyle.com] Sent: Wednesday, 28 August 2013 7:24 AM To: cf-talk Subject: cflocation and long urls Hi folks I have a long encrypted url stored

Re: cflocation and long urls

2013-08-28 Thread Rob Voyle
Hi Kevin I doubt that the + is the problem as it is now working fine as a relative link which includes the + / and = Rob On 28 Aug 2013 at 19:49, Kevin Parker wrote: My guess is your + signs may be seen as a space unless that's what you intended. I have seen this on the odd occasion but

cflocation and long urls

2013-08-27 Thread Rob Voyle
cflocation url=#database.weblink# I get a not found error in firefox IE Chrome whereas Safari it works fine Any ideas or work arounds? Thanks Rob Robert J. Voyle, Psy.D. Director, Clergy Leadership Institute For Coaching and Training in Appreciative Inquiry Author: Restoring Hope: Appreciative

Re: cflocation and long urls

2013-08-27 Thread Raymond Camden
+QBQw8JBtuiQ8Oyn6tc6qmbd+E7W vcbfncSF/pq2ttDOdegKnxA== It works fine if i manually copy the total url from the database to the browser, however if I use cflocation url=#database.weblink# I get a not found error in firefox IE Chrome whereas Safari it works fine Any ideas or work arounds? Thanks

Re: cflocation and long urls

2013-08-27 Thread Dave Watts
cflocation url=#database.weblink# I get a not found error in firefox IE Chrome whereas Safari it works fine Any ideas or work arounds? My guess is that it's not a length issue, as Ray suggests, but rather an encoding issue. Compare the exact value very carefully between the one you pasted

RE: cflocation and long urls

2013-08-27 Thread Mark A Kruger
, 2013 5:00 PM To: cf-talk Subject: Re: cflocation and long urls There is a max size for URLs. Some browsers may be more strict about it. On Tue, Aug 27, 2013 at 4:23 PM, Rob Voyle robvo...@voyle.com wrote: Hi folks I have a long encrypted url stored in a database: the cgi.query_string

Re: cflocation and long urls

2013-08-27 Thread Rob Voyle
. Both work fine. Its just the cflocation that is not working.Using CF9 if that matters. Rob I have a long encrypted url stored in a database: the cgi.query_string is something like YJShGG8kxBWgJKOlo2z4oTM8jEanxnGNBzw+QBQw8JBtuiQ8Oyn6tc6qmbd+E7W vcbfncSF/pq2ttDOdegKnxA

Re: cflocation and long urls

2013-08-27 Thread Dave Watts
Also its not an error in the string as you suggest Dave. I have both copied it straight from the database and then copied it from a cfm page where the database query is being presented. Both work fine. Its just the cflocation that is not working.Using CF9 if that matters. I think you

Re: cflocation and long urls

2013-08-27 Thread Bryan Stevenson
the database and then copied it from a cfm page where the database query is being presented. Both work fine. Its just the cflocation that is not working.Using CF9 if that matters. Rob I have a long encrypted url stored in a database: the cgi.query_string is something like

Re: cflocation and long urls

2013-08-27 Thread Rob Voyle
Hi Bryan To check it I used trim no success. Then instead of using cflocation url=#database.weblink[1]# I put cflocation url=copy of complete link that works manually Again no success, What I did notice the link is an absolute link beginning http://www the cflocation appears

Re: cflocation and long urls -2

2013-08-27 Thread Rob Voyle
Hi folks Interesting it works fine with relative url. Not sure if it is a length issue in the cflocation or some other factor Thanks Rob ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion

Re: cflocation and long urls

2013-08-27 Thread Byron Mann
Are there any strange characters in the final decrypted uri? Like % / +? That are in the query_string portion of the URI? Byron Mann Lead Engineer Architect HostMySite.com ~| Order the Adobe Coldfusion Anthology now!

Re: cflocation and long urls

2013-08-27 Thread Rob Voyle
Hi Byron yes there are several + and / and = Rob On 27 Aug 2013 at 21:43, Byron Mann wrote: Are there any strange characters in the final decrypted uri? Like % / +? That are in the query_string portion of the URI? Byron Mann Lead Engineer Architect HostMySite.com

CFLOCATION and urlencodedformat

2013-01-23 Thread Torrent Girl
Hello all I am trying to do the following: cfset var1 = this is a test cflocation url=index.cfm?variable=#urlEncodedFormat(var1)# When I output var1 on the page, it is encoded, but when I pass the var using cflocation it isn't. Any suggestions? Thank you

Re: CFLOCATION and urlencodedformat

2013-01-23 Thread Andrew Scott
Yep try this cfset var1 = this is a test cfset relocate = index.cfm?variable=#urlEncodedFormat(var1)# / cflocation url=relocate That should work, especially if this is suffering the same problem as cfsavecontent and a few other tags and functions. -- Regards, Andrew Scott WebSite: http

Re: CFLOCATION and urlencodedformat

2013-01-23 Thread Torrent Girl
Yep try this cfset var1 = this is a test cfset relocate = index.cfm?variable=#urlEncodedFormat(var1)# / cflocation url=relocate That should work, especially if this is suffering the same problem as cfsavecontent and a few other tags and functions. -- Regards, Andrew Scott WebSite: http

Re: CFLOCATION and urlencodedformat

2013-01-23 Thread Raymond Camden
)# / cflocation url=relocate That should work, especially if this is suffering the same problem as cfsavecontent and a few other tags and functions. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/113032480415921517411 That still didn't work. Do I

Re: CFLOCATION and urlencodedformat

2013-01-23 Thread John M Bliss
but when I pass the var using cflocation it isn't. Where, specifically? In the browser's URL/location bar? Or when you cfoutput#url.variable#/cfoutput? (If the latter, that's the way it's supposed to work.) On Wed, Jan 23, 2013 at 10:22 AM, Torrent Girl moniqueb...@gmail.comwrote: Yep try

Re: CFLOCATION and urlencodedformat

2013-01-23 Thread Torrent Girl
Dumb question - what are you seeing in the browser? When you output #url.variable# what do you see? On Wed, Jan 23, 2013 at 10:22 AM, Torrent Girl moniqueb...@gmail.comwrote: When I output the var on the page I see the encoded version: index.cfm?variable=this%20is%20a%20test when it

Re: CFLOCATION and urlencodedformat

2013-01-23 Thread Torrent Girl
but when I pass the var using cflocation it isn't. Where, specifically? In the browser's URL/location bar? Or when you cfoutput#url.variable#/cfoutput? (If the latter, that's the way it's supposed to work.) On Wed, Jan 23, 2013 at 10:22 AM, Torrent Girl moniqueb...@gmail.comwrote: When I

Re: CFLOCATION and urlencodedformat

2013-01-23 Thread John M Bliss
Still not clear RE: which page is which and where you're seeing what. Let's say you have: page1.cfm cfset var1 = this is a test cflocation url=page2.cfm?variable=#urlEncodedFormat(var1)# ...then, on page2.cfm, you should see in the browser's URL/location bar: ...page2.cfm?variable=this%20is

Re: CFLOCATION and urlencodedformat

2013-01-23 Thread Raymond Camden
When I output the var on the page I see the encoded version: index.cfm?variable=this%20is%20a%20test Eh? You wouldn't see index.cfm, etc. Seriously, like, do this: cfoutput#url.variable#/cfoutput Do you see this is a test or this%20etc On Wed, Jan 23, 2013 at 10:38 AM, Torrent Girl

Re: CFLOCATION and urlencodedformat

2013-01-23 Thread Torrent Girl
When I output the var on the page I see the encoded version: index.cfm?variable=this%20is%20a%20test Eh? You wouldn't see index.cfm, etc. Seriously, like, do this: cfoutput#url.variable#/cfoutput Do you see this is a test or this%20etc On Wed, Jan 23, 2013 at 10:38 AM, Torrent Girl

Re: CFLOCATION and urlencodedformat

2013-01-23 Thread Torrent Girl
Still not clear RE: which page is which and where you're seeing what. Let's say you have: page1.cfm cfset var1 = this is a test cflocation url=page2.cfm?variable=#urlEncodedFormat(var1)# ...then, on page2.cfm, you should see in the browser's URL/location bar: ...page2.cfm?variable=this%20is

Re: CFLOCATION and urlencodedformat

2013-01-23 Thread Raymond Camden
index.cfm is part of the variable? So your telling cflocation to go to a url and pass along a value that also includes a file name in it?? Is this online someplace? Because this is a SERIOUSLY simple thing and I think all of us are missing something obvious. On Wed, Jan 23, 2013 at 1:59 PM

Re: CFLOCATION and urlencodedformat

2013-01-23 Thread Torrent Girl
Still not clear RE: which page is which and where you're seeing what. Let's say you have: page1.cfm cfset var1 = this is a test cflocation url=page2.cfm?variable=#urlEncodedFormat(var1)# ...then, on page2.cfm, you should see in the browser's URL/location bar: ...page2.cfm?variable=this%20is

Re: CFLOCATION and urlencodedformat

2013-01-23 Thread Raymond Camden
By any wild chance did you urlencode it already? If you output form.searchparam _before_ the cflocation, and throw in an abort, is it encoded? Also - you don't need cfoutput tags around a cflocation. On Wed, Jan 23, 2013 at 2:16 PM, Torrent Girl moniqueb...@gmail.com wrote: Still

Re: CFLOCATION and urlencodedformat

2013-01-23 Thread John M Bliss
On Wed, Jan 23, 2013 at 2:16 PM, Torrent Girl moniqueb...@gmail.com wrote: this is a test I just ran that and ended up looking at this URL: http://citiprogram.desk.com/customer/portal/articles/search?q=this%20is%20a%20test ...where that page reads: 1 results found for this is a test

Re: CFLOCATION and urlencodedformat

2013-01-23 Thread John M Bliss
P.S. My test was simply this: cflocation url= http://citiprogram.desk.com/customer/portal/articles/search?q=#URLEncodedFormat('thisis a test')# addtoken=no On Wed, Jan 23, 2013 at 2:25 PM, John M Bliss bliss.j...@gmail.com wrote: On Wed, Jan 23, 2013 at 2:16 PM, Torrent Girl moniqueb

cflocation not working

2012-11-15 Thread fun and learning
Hi All - I am using the following code to redirect a page cfif cgi.http_host EQ abc.com cfif cgi.http_url EQ /test/folder1 cflocation statuscode=301 addtoken=false url=http://abc.com/test/folder2; /cfif /cfif The second if statement does not work. if I do the redirect just

cflocation not working

2012-11-15 Thread fun and learning
Hi All - I am using the following code to redirect a page cfif cgi.http_host EQ abc.com cfif cgi.http_url EQ /test/folder1 cflocation statuscode=301 addtoken=false url=http://abc.com/test/folder2; /cfif /cfif The second if statement does not work. if I do the redirect just

Re: cflocation not working

2012-11-15 Thread Raymond Camden
So when you output cgi.http_url, what do you see? On Thu, Nov 15, 2012 at 11:31 AM, fun and learning funandlrnn...@gmail.comwrote: Hi All - I am using the following code to redirect a page cfif cgi.http_host EQ abc.com cfif cgi.http_url EQ /test/folder1 cflocation

Re: cflocation not working

2012-11-15 Thread funand learning
to redirect a page cfif cgi.http_host EQ abc.com cfif cgi.http_url EQ /test/folder1 cflocation statuscode=301 addtoken=false url= http://abc.com/test/folder2; /cfif /cfif The second if statement does not work. if I do the redirect just using the first if statement

Re: cflocation not working

2012-11-15 Thread Raymond Camden
And if you output some text before the cflocation, does it work? On Thu, Nov 15, 2012 at 11:34 AM, funand learning funandlrnn...@gmail.comwrote: I see /test/folder1 On Thu, Nov 15, 2012 at 11:32 AM, Raymond Camden raymondcam...@gmail.com wrote: So when you output cgi.http_url, what

RE: cflocation not working

2012-11-15 Thread Robert Harrison
Your problem is the cgi vars. Test it without the if statements and see if it works. If it does, it's you cgi var statements that need some work. Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct   125 Kennedy Drive,  Suite 100   I  

Re: cflocation not working

2012-11-15 Thread funand learning
I put this code in application.cfm, but when I put it in some other common include file it works. How to make this work in application.cfm file? On Thu, Nov 15, 2012 at 11:42 AM, Robert Harrison rob...@austin-williams.com wrote: Your problem is the cgi vars. Test it without the if statements

Persisting query data across cflocation

2011-03-23 Thread Eric Cobb
Given the following scenario, what would be the best way to persist the data across the cflocation call? I have page A, which includes page B, which does a cflocation to page C. Query results returned in page A need to be available in page C. Since we're doing a cflocation, which starts

re: Persisting query data across cflocation

2011-03-23 Thread Jason Fisher
Yes, storing in a Session or Client struct is your only option. Earlier versions of CF would lose sessions set before a CFLOCATION as well, so if you're on CFMX or something, use JavaScript location.href = C.cfm for the redirect to get around

Re: Persisting query data across cflocation

2011-03-23 Thread Judah McAuley
, Mar 23, 2011 at 7:56 AM, Eric Cobb cft...@ecartech.com wrote: Given the following scenario, what would be the best way to persist the data across the cflocation call? I have page A, which includes page B, which does a cflocation to page C.  Query results returned in page A need

cflocation in cfc

2010-05-22 Thread Matthew P. Smith
bad idea? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive:

Re: cflocation in cfc

2010-05-22 Thread Mark Mandel
I would say so, yes... but given that you've given us no details, its very hard to say for sure. Sent from my mobile device On 23 May 2010 10:34, Matthew P. Smith m...@smithwebdesign.net wrote: bad idea? ~| Order the

Re: cfdocument / cflocation

2010-05-20 Thread Nando
Dave, Thanks very much for the iframe idea. I will give that a try. Nando On Wed, May 19, 2010 at 6:33 PM, Dave Watts dwa...@figleaf.com wrote: No, that's not the outcome desired, of course. I want the download window to pop up and then when the accept the download, they are redirected.

Re: cfdocument / cflocation

2010-05-20 Thread Nando
close wrapping the cfdocument tag in a cfthread? Nando Faced with a similar problem in CF 8 some time ago, I used some javascript (not cflocation) at the bottom of the document like this: cfdocument filename=#tempfile# format=PDF pagetype=A4 margintop=0.5 marginbottom=0.5 marginright=0.5

Re: cfdocument / cflocation

2010-05-19 Thread Nando
: I'd like to run a cflocation after generating a PDF using cfdocument, however, all efforts have failed. It seems all code after a cfdocument tag that pushes a PDF to browser for download is ignored. When you use CFLOCATION, users don't see the page containing the CFLOCATION tag. Instead

Re: cfdocument / cflocation

2010-05-19 Thread Bryn Parrott
javascript (not cflocation) at the bottom of the document like this: cfdocument filename=#tempfile# format=PDF pagetype=A4 margintop=0.5 marginbottom=0.5 marginright=0.5 marginleft=0.5 orientation=portrait unit=cm encryption=none fontembed=Yes overwrite=Yes backgroundvisible=Yes bookmark=False

Re: cfdocument / cflocation

2010-05-19 Thread Dave Watts
No, that's not the outcome desired, of course. I want the download window to pop up and then when the accept the download, they are redirected. OK, if the user's clicking a link to get to this download in the first place, you can probably do this pretty simply with an HTML page containing an

Re: cfdocument / cflocation

2010-05-19 Thread Dave Watts
Faced with a similar problem in CF 8 some time ago, I used some javascript (not cflocation) at the bottom of the document like this: cfdocument  filename=#tempfile# ... your pdf html code goes here. /cfdocument cfif fileexists(tempfile) and attributes.command eq 'file'        cfset

cfdocument / cflocation

2010-05-18 Thread Nando
Hi, I'd like to run a cflocation after generating a PDF using cfdocument, however, all efforts have failed. It seems all code after a cfdocument tag that pushes a PDF to browser for download is ignored. I've even attempted to set a variable *before* running the cfdocument tag

Re: cfdocument / cflocation

2010-05-18 Thread Dave Watts
I'd like to run a cflocation after generating a PDF using cfdocument, however, all efforts have failed. It seems all code after a cfdocument tag that pushes a PDF to browser for download is ignored. When you use CFLOCATION, users don't see the page containing the CFLOCATION tag. Instead

Re: cfdocument / cflocation

2010-05-18 Thread Wil Genovese
well. On May 18, 2010, at 2:18 PM, Nando wrote: Hi, I'd like to run a cflocation after generating a PDF using cfdocument, however, all efforts have failed. It seems all code after a cfdocument tag that pushes a PDF to browser for download is ignored. I've even attempted to set a variable

Does cflocation pass through request type and variables?

2010-04-16 Thread Andy Matthews
of variables to the receiving page. Dealer's can also have a custom URL on the page which takes the user to any site on the internet the dealer wishes to link to. In this case, the dealer is linking to a credit app site which does not allow POST requests. The problem is that we're using cflocation

Re: Does cflocation pass through request type and variables?

2010-04-16 Thread Matt Quackenbush
Loop through the form scope and append to the redirect URL's querystring? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

RE: Does cflocation pass through request type and variables?

2010-04-16 Thread Andy Matthews
[mailto:quackfu...@gmail.com] Sent: Friday, April 16, 2010 2:58 PM To: cf-talk Subject: Re: Does cflocation pass through request type and variables? Loop through the form scope and append to the redirect URL's querystring

Re: Does cflocation pass through request type and variables?

2010-04-16 Thread Matt Williams
You may be able to do something with cfheader. http://www.bennadel.com/blog/1550-Performing-ColdFusion-Processing-After-A-CFLocation-Tag.htm -Matt W Well, in almost every case, if not all cases, with a 3rd party URL, we don't care about passing the variables. We wouldn't even have a problem

Re: Does cflocation pass through request type and variables?

2010-04-16 Thread paulalkemadesi...@gmail.com
...@gmail.com Subject: Re: Does cflocation pass through request type and variables? You may be able to do something with cfheader. http://www.bennadel.com/blog/1550-Performing-ColdFusion-Processing-After-A-CFLocation-Tag.htm -Matt W Well, in almost every case, if not all cases, with a 3rd party URL

cflocation tag

2009-12-04 Thread Mike Stromme
Anyone ever have cflocation stop working. It is happening on our MX7 test server but works fine on our production MX7 server. I created a test page with just the cflocation tag with and without the addToken attribute and it just stays on the test page. Thanks, Mike

Re: cflocation tag

2009-12-04 Thread Barney Boisvert
Do you have CFFLUSH above the CFLOCATION tag anywhere (like another template or Application.cfm)? Once you flush the page, you can no longer do a CFLOCATION (or CFHEADER, CFCONTENT, etc.). cheers, barneyb On Fri, Dec 4, 2009 at 11:27 AM, Mike Stromme gtrplayer5...@gmail.com wrote: Anyone

Re: cflocation tag

2009-12-04 Thread Mike Stromme
Barney, Thank you, thank you, thank you I had a cfflush in the application.cfm file. thanks, Mike Do you have CFFLUSH above the CFLOCATION tag anywhere (like another template or Application.cfm)? Once you flush the page, you can no longer do a CFLOCATION (or CFHEADER, CFCONTENT

Is it possible to use cflocation in a cffunction?

2009-02-16 Thread Rick Faircloth
I know this is probably a bit of hackery, but... I'm trying to find an easy way to go from a jQuery AJAX function to a cffunction method, then from there, use a cflocation to jump to a page to print a schedule. I send my variables to the method via AJAX, (there's not an actual form on the page

Re: Is it possible to use cflocation in a cffunction?

2009-02-16 Thread Jason Fisher
Ajax doesn't run in the calling page's request, it runs in its own request and comes back to the calling page via your designated callback function. So, send a packet back to the callback that sets a local var for the selected_date and then triggers: location.href =

RE: Is it possible to use cflocation in a cffunction?

2009-02-16 Thread Rick Faircloth
Alright! That sounds good. Thanks for the tip, Jason! Rick -Original Message- From: Jason Fisher [mailto:ja...@wanax.com] Sent: Monday, February 16, 2009 9:29 PM To: cf-talk Subject: Re: Is it possible to use cflocation in a cffunction? Ajax doesn't run in the calling page's

RE: Is it possible to use cflocation in a cffunction?

2009-02-16 Thread Rick Faircloth
...they both give error messages that have nothing to do with the real problem... Thanks, Rick -Original Message- From: Jason Fisher [mailto:ja...@wanax.com] Sent: Monday, February 16, 2009 9:29 PM To: cf-talk Subject: Re: Is it possible to use cflocation in a cffunction? Ajax

RE: Is it possible to use cflocation in a cffunction?

2009-02-16 Thread Rick Faircloth
: Is it possible to use cflocation in a cffunction? Hmmm...I'm getting this error now: missing } after property list success: function(response) {\n which refers to this section: success: function(response) { location.href = floor_duty_printed_schedule.cfm

Re: cflocation problem

2008-05-06 Thread alex poyaoan
thanks to all the inputs will try which is best ... Hi everybody need help on this I have this code on an action template CFQUERY NAME=AddHL datasource=db INSERT into table1(listID, secondID, emailID) VALUES('#Form.ListID#','#Form.secondID#','#form.emailID#' ) /cfquery CFLOCATION URL

cflocation problem

2008-05-05 Thread alex poyaoan
Hi everybody need help on this I have this code on an action template CFQUERY NAME=AddHL datasource=db INSERT into table1(listID, secondID, emailID) VALUES('#Form.ListID#','#Form.secondID#','#form.emailID#' ) /cfquery CFLOCATION URL='Form2.cfm' I need to go back to the previous form

Re: cflocation problem

2008-05-05 Thread Phillip Vector
A quick and easy solution would be to store form.id into a session. cfset session.formid=form.id then cflocation to it and call it from #session.formid#. Might not be the BEST answer, but I'm still waking up. :) On Mon, May 5, 2008 at 8:16 AM, alex poyaoan [EMAIL PROTECTED] wrote: Hi

RE: cflocation problem

2008-05-05 Thread Leitch, Oblio
So, why can't you? cflocation url='form2.cfm?id=#form.id#' From: alex poyaoan [mailto:[EMAIL PROTECTED] Sent: Mon 5/5/2008 11:16 AM To: CF-Talk Subject: cflocation problem Hi everybody need help on this I have this code on an action template CFQUERY NAME

Re: cflocation problem

2008-05-05 Thread Phillip Vector
I don't believe you can send url variables with cflocation. I'm also assuming from what you wrote that you already tried that. Anyway, you don't want to do that anyway because it opens up a way for people to manipulate the URL and get into areas they shouldn't be. Good practice? On Mon, May 5

RE: cflocation problem

2008-05-05 Thread Dave Watts
I don't believe you can send url variables with cflocation. You can do this. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers

Re: cflocation problem

2008-05-05 Thread Phillip Vector
Is there a way to insert that value in the cflocation url? I tried it but it gives me an error wHAT i WANT TO DI IS cflocation url='form2.cfm?id='form.id Ok... So Alex... What's the problem again? On Mon, May 5, 2008 at 9:08 AM, Dave Watts [EMAIL PROTECTED] wrote: I don't believe you can send

RE: cflocation problem

2008-05-05 Thread Leitch, Oblio
You beat me to it. It's my understanding that the cflocation tag simply inserts a 302(?) http status and corresponding Location header. Per the specs (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html), I believe the Location can be any valid URI; which includes using a query string

RE: cflocation problem

2008-05-05 Thread Dave Francis
Shouldn't that be cflocation url='form2.cfm?id=#form.id#' -Original Message- From: Phillip Vector [mailto:[EMAIL PROTECTED] Sent: Monday, May 05, 2008 12:12 PM To: CF-Talk Subject: Re: cflocation problem Is there a way to insert that value in the cflocation url? I tried

Re: cflocation problem

2008-05-05 Thread Axel Schultze
In /wwwroot/cfdocs... you find this example cfif TripQuery.RecordCount is 1 cflocation url=tripdetail.cfm?ID=#TripQuery.tripID# cfelse cflocation url=tripdetail.cfm?ID=#Form.RecordID# /cfif so 1) URL parameter absolutely works 2) I use

Re: cflocation problem

2008-05-05 Thread Axel Schultze
1) URL parameter absolutely works in cflocation In /wwwroot/cfdocs... you find this example cfif TripQuery.RecordCount is 1 cflocation url=tripdetail.cfm?ID=#TripQuery.tripID# cfelse cflocation url=tripdetail.cfm?ID=#Form.RecordID# /cfif 2

problems with cflocation and redirect will never complete.

2008-04-25 Thread Casey Dougall
Hi, I'm having troubles with a cflocation script. First Script finds the ID that it needs and then should perform a cflocation the the script that runs a process that generates an xml file. At that end of that script, it should do another cflocation back to the original script and find the next

Re: problems with cflocation and redirect will never complete.

2008-04-25 Thread Marco Antonio C. Santos
Casey, my suggestion is to change your cflocation with Java redirect routine. Please try this: cfscript getPageContext().getResponse().sendRedirect(local.YourURL); /cfscript Cheers Marco Antonio On Fri, Apr 25, 2008 at 3:17 PM, Casey Dougall [EMAIL PROTECTED] wrote: Hi, I'm

Re: problems with cflocation and redirect will never complete.

2008-04-25 Thread Casey Dougall
On Fri, Apr 25, 2008 at 3:47 PM, Marco Antonio C. Santos [EMAIL PROTECTED] wrote: Casey, my suggestion is to change your cflocation with Java redirect routine. Please try this: cfscript getPageContext().getResponse().sendRedirect(local.YourURL); /cfscript Cheers Marco

Re: problems with cflocation and redirect will never complete.

2008-04-25 Thread Ian Skinner
Casey Dougall wrote: Any ideas of how I can get around this issue. If you need to generate an XML file for 1000 ID's each may end up being 1 to 2 meg in size. This was the best way I could figure to get around script timeouts. What about resetting the script timeouts to a value large

Re: problems with cflocation and redirect will never complete.

2008-04-25 Thread Casey Dougall
On Fri, Apr 25, 2008 at 4:03 PM, Ian Skinner [EMAIL PROTECTED] wrote: What about resetting the script timeouts to a value large enough to accomplish your task either globally in the administrator or locally with the cfsetting... tag? Yeah, that may be the only way to get this threw the

Re: problems with cflocation and redirect will never complete.

2008-04-25 Thread Ian Skinner
Casey Dougall wrote: Right, so i tried appending a URL variable to the end that changes everytime the script runs, but that didn't work either. Well a different query, AKA url, variable does not change the resource redirected to. If this where to work you would somehow have to change the

Re: problems with cflocation and redirect will never complete.

2008-04-25 Thread Dominic Watson
Cfhttp to the rescue ;) cfloop query=theIds cfhttp url=addressthatProcessesTheId method=get cfhttpparam type=url name=theId value=#theId# / /cfhttp /cfloop HTH Dominic On 25/04/2008, Casey Dougall [EMAIL PROTECTED] wrote: On Fri, Apr 25, 2008 at 4:03 PM, Ian Skinner [EMAIL

Re: problems with cflocation and redirect will never complete.

2008-04-25 Thread Ian Skinner
Ian Skinner wrote: But my gut tells me that tricking the browser to make 1000 requests|redirects is the best way to resolve this requirement. is **NOT** the best way to resolve this ... ~| Adobe® ColdFusion® 8 software 8

  1   2   3   4   5   6   7   8   9   >