To me, that's kind of like asking "Is it a good idea to use a database
in my application?"

If you need something to happen on the server, then use CF.  If you need
processing to happen on the client, use JavaScript.
If you want the JavaScript to be dependent on the outcome of CF code,
then you dynamically produce the necessary JS in your CF or write
JavaScript capable of executing appropriately based on the return of an
Ajax call.

It's not really that one is better, it's that they both have their
place.

~Brad

-------- Original Message --------
Subject: Re: Is it possible to use a CF variable in jQuery?
From: Tony Bentley <t...@tonybentley.com>
Date: Mon, January 12, 2009 4:41 pm
To: cf-talk <cf-talk@houseoffusion.com>

The question to further this discussion is to ask, is it a good idea to
mix coldfusion markup and javascript?

What is a better approach? 



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

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317820
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