biggest difference is that cfscript uses CFML comparison operators...
<cfscript>
if (foo EQ 3) ...
where javascript uses normal <g> comparison operators...
<script type="text/javascript">
if (foo == 3) ...
Also cfscript has no increment/decrement operator.
<cfscript>
for (i=1; i LT 10; i=i+1) ...
<script type="text/javascript">
for (i=1; i < 10; i++) ...
On 4/19/07, Ariel Jakobovits <[EMAIL PROTECTED]> wrote:
> where do their syntax differ?
>
> Wouldn't it be nice if we could import one script either into a cfscript tag
> body or as JSON and use it to do the same thing in either case?
>
> can we?
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 &
Flex 2
Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275901
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4