Skip to main content
Participating Frequently
June 16, 2008
Question

cfsprydataset bind javascript

  • June 16, 2008
  • 1 reply
  • 1023 views
Can you help me understand why this code:

<cfhtmlhead text="
<script type=""text/javascript"">
function getBind() {
return '#SerializeJSON(MyQuery)#';
}
</script>
">

<cfsprydataset bind="javascript:getBind()" name="MyDataset" type="json">

...produces this error: "Invalid bind type. Detail Only CFC, URL and JAVASCRIPT allowed."
    This topic has been closed for replies.

    1 reply

    Inspiring
    July 2, 2008
    Hi,

    Put your getBind() function inside a CFC and then refer it as,

    <cfsprydataset bind="CFC:your_cfc_name.getBind()" name="MyDataset" type="json">