Using tags with CFSCRIPT

2008-04-14 Thread [STS] Ravi Gehlot
I found a way to cheat HostMySite's 1 domain per account set up. What this does is it checks the URL for the domain typed and it redirects it to a directory specific for that domain. That way I am able to host all my sites with the CF+ Builder package. My question is...I was about to achieve this

Re: Using tags with CFSCRIPT

2008-04-14 Thread [STS] Ravi Gehlot
) -Original Message- From: [STS] Ravi Gehlot [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 8:57 AM To: CF-Talk Subject: Using tags with CFSCRIPT I found a way to cheat HostMySite's 1 domain per account set up. What this does is it checks the URL for the domain typed

Re: Using tags with CFSCRIPT

2008-04-14 Thread [STS] Ravi Gehlot
Variable CFLOCATION is undefined. The error occurred in C:\Websites\156945dm2\index.cfm: line 4 2 : cfscript 3 : switch(cgi.http_host) { 4 : case 'www.brightWebWorks.com':cflocation(theURL:'brightWebWorks.com/'); break; 5 : 6 : } On Mon, Apr 14, 2008 at 9:13 AM, [STS] Ravi Gehlot [EMAIL

RE: Using tags with CFSCRIPT

2008-04-14 Thread Scott Stewart
-- Scott Stewart ColdFusion Developer SSTWebworks 4405 Oakshyre Way Raleigh, NC. 27616 (919) 874-6229 (home) (703) 220-2835 (cell) -Original Message- From: [STS] Ravi Gehlot [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 8:57 AM To: CF-Talk Subject: Using tags with CFSCRIPT I found

RE: Using tags with CFSCRIPT

2008-04-14 Thread Scott Stewart
) -Original Message- From: [STS] Ravi Gehlot [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 9:29 AM To: CF-Talk Subject: Re: Using tags with CFSCRIPT Variable CFLOCATION is undefined. The error occurred in C:\Websites\156945dm2\index.cfm: line 4 2 : cfscript 3 : switch

Re: Using tags with CFSCRIPT

2008-04-14 Thread [STS] Ravi Gehlot
PROTECTED] Sent: Monday, April 14, 2008 9:29 AM To: CF-Talk Subject: Re: Using tags with CFSCRIPT Variable CFLOCATION is undefined. The error occurred in C:\Websites\156945dm2\index.cfm: line 4 2 : cfscript 3 : switch(cgi.http_host) { 4 : case 'www.brightWebWorks.com':cflocation(theURL

Re: Using tags with CFSCRIPT

2008-04-14 Thread Dominic Watson
Yes, this is the problem: cflocation(theURL:'brightWebWorks.com/') cflocation is a tag, not a function. To do the cflocation from within a cfscript block you will need to create a UDF. I.e. cffunction name=scriptLocation cfargument name=location cfargument name=addToken required=false

Re: Using tags with CFSCRIPT

2008-04-14 Thread [STS] Ravi Gehlot
Hi Dominic, Thank you for clarifying this whole thing. I had done a couple of searches on Google and I didn't read anything about creating an UDF. Obviously creating an UDF for this matter is not necessary when you can use cfswitch and cfcase but for the sake of learning lets say I were to

Re: Using tags with CFSCRIPT

2008-04-14 Thread Dominic Watson
Where would I place these UDFs so that whenever I needed them I could just call the function? Yeh, I often use UDFs for this kind of thing where I want to use cfscript but there is the odd tag I need to use but I doubt you'd ever get a google result for this kind of thing. For UDFs, I

Re: Using tags with CFSCRIPT

2008-04-14 Thread Scott Brady
On Mon, Apr 14, 2008 at 7:09 AM, Scott Stewart [EMAIL PROTECTED] wrote: I've used a similar script with HMS hosting. Using CFScript should be a bit faster as CF processes the CFScript block all at once as opposed to processing each tag individually. I was under the impression that this

Re: Using tags with CFSCRIPT

2008-04-14 Thread [STS] Ravi Gehlot
Gotcha, would it be better to put these UDFs in CFCs and then instantiate them on Application.CFC? Ravi. On Mon, Apr 14, 2008 at 10:22 AM, Dominic Watson [EMAIL PROTECTED] wrote: Where would I place these UDFs so that whenever I needed them I could just call the function? Yeh, I

Re: Using tags with CFSCRIPT

2008-04-14 Thread [STS] Ravi Gehlot
Thanks. This issue is now resolved. Ravi. On Mon, Apr 14, 2008 at 10:35 AM, Dominic Watson [EMAIL PROTECTED] wrote: Gotcha, would it be better to put these UDFs in CFCs and then instantiate them on Application.CFC? I don't think so because then you would have to call them with:

Re: Using tags with CFSCRIPT

2008-04-14 Thread Raymond Camden
So forgive me for focusing on the non-technical aspect of this - but did I read you right? You are publicly admitting you are cheating HostMySite? I must be wrong.Unless perhaps HMS did something to you that you feel justified in cheating them - even then I'd find it hard to believe you would say

RE: Using tags with CFSCRIPT

2008-04-14 Thread Andy Matthews
. -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 9:39 AM To: CF-Talk Subject: Re: Using tags with CFSCRIPT So forgive me for focusing on the non-technical aspect of this - but did I read you right? You are publicly admitting you are cheating

RE: Using tags with CFSCRIPT

2008-04-14 Thread Scott Stewart
to a hosted server. -- Scott Stewart ColdFusion Developer SSTWebworks 4405 Oakshyre Way Raleigh, NC. 27616 (919) 874-6229 (home) (703) 220-2835 (cell) -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 10:39 AM To: CF-Talk Subject: Re: Using tags

Re: Using tags with CFSCRIPT

2008-04-14 Thread Ian Skinner
Raymond Camden wrote: So forgive me for focusing on the non-technical aspect of this - but did I read you right? You are publicly admitting you are cheating HostMySite? I must be wrong.Unless perhaps HMS did something to you that you feel justified in cheating them - even then I'd find it hard

Re: Using tags with CFSCRIPT

2008-04-14 Thread Dominic Watson
Gotcha, would it be better to put these UDFs in CFCs and then instantiate them on Application.CFC? I don't think so because then you would have to call them with: myUDFsObject.udfName() As opposed to just: udfName() You could just include all your udfs in application.cfc in

RE: Using tags with CFSCRIPT

2008-04-14 Thread Andy Matthews
: Using tags with CFSCRIPT Raymond Camden wrote: So forgive me for focusing on the non-technical aspect of this - but did I read you right? You are publicly admitting you are cheating HostMySite? I must be wrong.Unless perhaps HMS did something to you that you feel justified in cheating them

Re: Using tags with CFSCRIPT

2008-04-14 Thread Jamie Price
That's assinine. If they provide a workaround for their customers, why not just build it in to their system and officially allow multiple domains? Silliness. We allow code-based redirects because they're less likely to be implemented (you have to be somewhat familiar with coding) and they

RE: Using tags with CFSCRIPT

2008-04-14 Thread Dave Watts
Using CFScript should be a bit faster as CF processes the CFScript block all at once as opposed to processing each tag individually. I strongly doubt this, and have seen no evidence (load tests) that it's true now, even if it may have been true in the past (which I also doubt). Dave Watts,

RE: Using tags with CFSCRIPT

2008-04-14 Thread Dave Watts
You made an excellent observation about CFScript. It does process faster because it reads a whole block instead of reading tag by tag. Have you validated this assumption with load testing? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training:

RE: Using tags with CFSCRIPT

2008-04-14 Thread Scott Stewart
(home) (703) 220-2835 (cell) -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 12:11 PM To: CF-Talk Subject: RE: Using tags with CFSCRIPT Using CFScript should be a bit faster as CF processes the CFScript block all at once as opposed

Re: Using tags with CFSCRIPT

2008-04-14 Thread [STS] Ravi Gehlot
(home) (703) 220-2835 (cell) -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 12:11 PM To: CF-Talk Subject: RE: Using tags with CFSCRIPT Using CFScript should be a bit faster as CF processes the CFScript block all at once as opposed

Re: Using tags with CFSCRIPT

2008-04-14 Thread [STS] Ravi Gehlot
PROTECTED] Sent: Monday, April 14, 2008 12:11 PM To: CF-Talk Subject: RE: Using tags with CFSCRIPT Using CFScript should be a bit faster as CF processes the CFScript block all at once as opposed to processing each tag individually. I strongly doubt this, and have seen no evidence (load tests

RE: Using tags with CFSCRIPT

2008-04-14 Thread Scott Stewart
] Ravi Gehlot [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 1:58 PM To: CF-Talk Subject: Re: Using tags with CFSCRIPT Hey Scott, I spoke to a couple of my senior developer friends and they told me that back in the days of CF5 cfscript was faster than tags but that doesn't hold true

RE: Using tags with CFSCRIPT

2008-04-14 Thread Eric Roberts
Then they would have to support it ;-) Eric /*-Original Message- /*From: Andy Matthews [mailto:[EMAIL PROTECTED] /*Sent: Monday, April 14, 2008 10:05 AM /*To: CF-Talk /*Subject: RE: Using tags with CFSCRIPT /* /*That's assinine. If they provide a workaround for their customers, why

RE: Using tags with CFSCRIPT

2008-04-14 Thread Dave Watts
Use cfscript Instead of Three or More cfsets The reason is this: When you use cfscript, the entire block gets sent to the engine at once. So, ColdFusion has to make only one read. When you send three or more cfset statements, ColdFusion gets to interpret them once each, or three times.