Hi guys,
can I use embedded javascript inside a cfc. Do I have to use a cftag
function wrapper?
At the minute I have tried
<cfcomponent>
<cfscript language="javascript">
var i = 0;
</cfscript>
</cfcomponent>
and
<cfcomponent>
<cffunction name='testLangDetect' access='remote' returnformat='json'>
<cfscript language="javascript">
var i = 0;
</cfscript>
</cffunction>
</cfcomponent>
and both fails with a message like:
java.lang.NullPointerException
at
org.alanwilliamson.lang.javascript.cfSCRIPTJavascript.tagLoadingComplete(Unknown
Source)
at com.naryx.tagfusion.cfm.tag.cfTag.normalise(Unknown Source)
at com.naryx.tagfusion.cfm.tag.cfTag.normalise(Unknown Source)
Have anyone tried this before?
thanks ;)
--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en