ColdFusion: _31c is null Javascript Error Message

Late last week I ran across a very strange Javascript error when putting together a few related selects. The error would appear whenever the bind function was fired on one of the select boxes. After some head scratching it finally dawned on me what the issue was. Since the bind function was making a direct call to a CFC, I needed the infamous “kill the request scope” code in my application file. After updating the onRequestStart function in the application.cfc file the issue went away. The code to do this is below.

<code lang="cfm[lines]"><cffunction name="onRequestStart" output="true" returntype="boolean"><br></br><cfif cgi.script_name="" contains=""><br></br><cfset temp="structDelete(this,'onRequest')"><br></br></cfset></cfif></cffunction>


comments powered by Disqus