Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Can ColdFusion Builder parser ignore single pound sign in javascript?

$
0
0

We have many existing scripts that don't seem to behave in ColdFusion Builder 3. Wherever we have jQuery selectors that use the id selector $("#..."), the function collapsing stops on the first line where the id selector is used. It becomes annoying since the remainder of the file will not collapse. I'd prefer not to have to wrap every selector in cfoutput so I can escape the pound sign.

 

The javascript is being saved in cfsavecontent tag. Below is a simplified code snippet. Function collapsing stops at the bold line and the remainder of the file does not collapse.

 

<cfcomponent displayname="content">

...

<cffunction name="getHomeContent" returntype="string">

<cfset var html = "" />

<cfsavecontent variable="html">

...

<script>

$('#myid').change(function() {

$('#myid-nav').val($('#myid').find(':selected').val());

});

</script>

...

</cfsavecontent>

<cfreturn html />

</cffunction>

...

</cfcomponent>


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>