Error: 'ac.node is null' in jQuery.js

Jan 12, 2012 at 7:46 AM

Hey,

I am new to the SPServices and working with jQuery 1.7.1, SPServices 0.7.0.

I just want to access some basic list items with the code below:

 

<script type="text/javascript">
    jQuery.support.cors = true;

    $("#main").live('pagecreate', function () {
        build_list_content();
    });

    function build_list_content() {


        jQuery.support.cors = true;

        $().SPServices({
            operation: "GetListItems",
            // Force sync so that we have the right values for the child column onchange trigger
            async: true,
             debug: true,
            crossDomain: true,
            webURL: "http://test.mysite.de/",
            listName: "Projektliste",
            // Filter based on the currently selected parent column's value
            CAMLQuery: "<Query><Where>"
                    				+ "<Eq><FieldRef Name='ProjectStatus' /><Value Type='Text'>Aktiv</Value></Eq>"
                    				+ "</Where></Query>",
            // Only get the parent and child columns
            //CAMLViewFields: "<ViewFields></ViewFields>",
            // Override the default view rowlimit and get all appropriate rows
            CAMLRowLimit: 30,
            completefunc: function (xData, status) {

                if (status == "error") {
                    var errHtml = $().SPServices.SPDebugXMLHttpResult({ node: xData.responseXML });

                }

                $(xData.responseXML).find("z\\:row").each(function () {


                    var ID = $(this).attr('ows_ID');
                    var title = $(this).attr('ows_Title');
                    var url = $(this).attr('ows_ProjectUrl').split(",")[0];
                    var phase = $(this).attr('ows_Phase0');
                    var desc = $(this).attr('ows_ProjectDescription');
                    var customer = $(this).attr('ows_CustomerName');


                    $(".mainlist").append("<li> <a href='#aboutus' title='url' data-panel='main'>" + customer + " - " + title + "</a></li>");
                });
            }
        });

    }

 

I am working on a local site ("http://localhost:56111/splitnew.html"), because I don´t want to affect a production system.

With the Debugger (Firefox) I get this strange error code: "

ac.node is null "jQuery-1.7.1.min.js, line 19"
...function(){var ag=H(this).val();H("input[id='"+i+"']").val(ag);H(ae.Obj).val(H(t..."

Do you have any suggestions what´s going on there?

Even a call of the getCurrentPage(); returns "".

 

Thanks for your help!

Jan 12, 2012 at 1:56 PM
Edited Jan 12, 2012 at 1:58 PM

If you change your xData row iteration from what it is to use http://spservices.codeplex.com/wikipage?title=$().SPFilterNode, does this error still happen?

You also have 

crossDomain: true,

I don't think that is a valid option for SPServices.