Comment out every line and add them back one at a time until the error occurs. If it happens with all lines commented out, look at the code that calls it.
thanks Dan, it's the cfgrid onload thrwoing the error. i've tried:
also tried instead the <cfset ajaxOnLoad="getGridData">, it doesn't throw an error but doesn't return the rowcount either
it's the onLoad attribute of a cfgrid of type HTML
nothing happens if i put the alert at the top of the function, get the same error. looks like the error happens before the function executes.
what's worse, i don't think the onLoad event of the grid actually works. i've tried a different method: the cfgrid is bound to the onkeyup event of a text box, srcApps. i've modified this text box like <input type="text" name="srcApps" setTimeout('getGridData()',1000);"> adding a 1 second delay before executing the function.
this works, but only when i type something in srcApps, and only when using <cfset ajaxOnLoad="getGridData"> at the end of the page, not with the grid onLoad event. if i remove the 1 second delay in the srcApps definition, it stops working, which i think proves onLoad never kicks off