)
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
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
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
.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
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
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
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
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
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
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
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
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
,.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
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
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
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:
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
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
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
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 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
+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
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
, 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
. 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
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
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
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
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
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!
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
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
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
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
)# /
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
bad idea?
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
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
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.
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
:
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
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
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
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
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
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
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
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
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:
[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
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
...@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
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
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
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
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
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 =
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
...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
: 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 849 matches
Mail list logo