Skip navigation
Currently Being Moderated

Reference Error - cfgrid.js

May 16, 2012 8:31 AM

I am using CF901 and trying to utilize CFGRID along with ajaxproxy to create toolbar, etc. I am having a reference issue and cannot seem to figure out how to resolve.  In the ajax debugger, here is the message I am getting...window:global: ReferenceError: Can't find variable: e (http://localhost/CFIDE/scripts/ajax/package/cfgrid.js, line 997) Thoughts?

 
Replies
  • Currently Being Moderated
    May 17, 2012 1:00 AM   in reply to Clay Hess

    Better show the code.

     
    |
    Mark as:
  • Currently Being Moderated
    May 17, 2012 7:55 AM   in reply to Clay Hess

    Clay Hess wrote:

     

    Here is the code...

     


    <script type="text/javascript" src="/CFIDE/scripts/ajax/ext/package/toolbar/toolbar.js"></script>t

     

    This is unnecessary, as ColdFusion is configured to load the CFIDE scripts by default.

     

        // create a new JS proxy object for the CFC

        var dataproxy = new dataproxy();

        dataproxy.setCallbackHandler(handleResult);

       

        function handleResult(response)

        {

            alert(response);

        }

     

    I expected you to kick off with something like:

     

    <!--- Create client-side proxy for dataproxy CFC. --->

    <cfajaxproxy cfc="dataproxy" jsclassname="dataproxy">

     

    <html>

        <head>

            <script type="text/javascript">

           

                var getData = function(){

                    // create instance of the proxy

                    var dataproxy = new dataproxy();

             

                    dataproxy.setCallbackHandler(handleResult);

                    dataproxy.setErrorHandler(myErrorHandler);

                    dataproxy.getData();

                }

             ...

         etc., etc. 

        </script> 

        </head>

    ...

    ...

    </html>

     

    I strongly recommend the livedocs on cfajaxproxy, which has a fully worked out example.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points