Scott,

      You made an excellent observation about CFScript. It does process
faster because it reads a whole block instead of reading tag by tag. Well,
the code doesn't work because it says that the cflocation is an undefined
variable. I have searched Google to find out how to use CFTags with CFScript
and it looks like I got the correct syntax. Can you replicate this error?

Ravi.



On Mon, Apr 14, 2008 at 9:09 AM, Scott Stewart <[EMAIL PROTECTED]>
wrote:

> Ravi,
>
> I know you don't have to surround CFScript tags with CFOutput tags. What
> errors are you getting.
>
> 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.
>
> sas
>
> --
> 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 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
> with <cfswitch><cfcase> but when I switched it over to a cfscript block I
> started getting errors. Can anyone tell me where I made a mistake? Before
> anyone asks...yes...I am sticking with CFSCRIPT.
>
> CODE:
>
> <cfoutput>
> <cfscript>
> switch(cgi.http_host) {
>    case 'www.brightWebWorks.com':cflocation(theURL:'brightWebWorks.com/');
> break;
>    case 'brightWebWorks.com':cflocation(theURL:'brightWebWorks.com/');
> break;
>    case
>
> 'www.sunshineTechSolutions.com':cflocation(theURL:'sunshineTechSolutions.com
> /');
> break;
>    case
>
> 'sunshineTechSolutions.com':cflocation(theURL:'sunshineTechSolutions.com/');
> break;
>    case
>
> 'www.sunshineTechnologySolutions.com':cflocation(theURL:'sunshineTechnologyS
> olutions.com/' <http://olutions.com/%27>);
> break;
>    case
>
> 'sunshineTechnologySolutions.com':cflocation(theURL:'sunshineTechnologySolut
> ions.com/' <http://ions.com/%27>);
> break;
>    case 
> 'www.ravigehlot.com':cflocation(theURL:'ravigehlot.com/'<http://ravigehlot.com/%27>);
> break;
>    case 
> 'ravigehlot.com':cflocation(theURL:'ravigehlot.com/'<http://ravigehlot.com/%27>);
> break;
>    case 
> 'www.ravigehlot.net':cflocation(theURL:'ravigehlot.net/'<http://ravigehlot.net/%27>);
> break;
>    case 
> 'ravigehlot.net':cflocation(theURL:'ravigehlot.net/'<http://ravigehlot.net/%27>);
> break;
>    case
> 'www.lookForAStripper.com':cflocation(theURL:'lookForAStripper.com');
> break;
>    case 'lookForAStripper.com':cflocation(theURL:'lookForAStripper.com');
> break;
>    case 'www.falacidade.com':cflocation(theURL:'falacidade.com'); break;
>    case 'falacidade.com':cflocation(theURL:'falacidade.com'); break;
>    case 'www.amadosgest.com':cflocation(theURL:'amadosgest.com'); break;
>    case 'amadosgest.com':cflocation(theURL:'amadosgest.com'); break;
>    default:cflocation(theURL:'76.12.205.99');
> }
> </cfscript>
> </cfoutput>
>
>
> Ravi.
>
> --
> ------------------------------------------------------------
> Ravi Gehlot
> Web Programmer & IT Specialist
>
> Sunshine Tech Solutions, LLC
> http://www.sunshinetechsolutions.com
> [EMAIL PROTECTED]
> President
> ------------------------------------------------------------
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303285
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to