Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

Closed Unassigned: parsererror on chrome & Firefox [10138]

$
0
0
Hi Guys,

i'm trying to use SPServices library in my html application(HTML PAGE) which is not connected to sharepoint site in any manner,my below code works fine in IE,but thows parse error in chrome & Firefox,any help will be appreciated.

```
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Page</title>
</head>
<body>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.SPServices-0.7.2.js"></script>
<script type="text/javascript" src="jquery.SPServices-0.7.2.min.js"></script>
<script language="javascript" type="text/javascript">

$(document).ready(function () {
debugger;
$().SPServices({
operation: "GetListItems",
async: false,
webURL: "SharePointSiteUrl",
listName: "List GUID",
CAMLViewFields: "<ViewFields><FieldRef Name='Title' /></ViewFields>",
completefunc: function (xData, Status) {
debugger;
$(xData.responseXML).SPFilterNode("z:row").each(function () {
var liHtml = $(this).attr("ows_Title");

$("#Content").append(liHtml);

});
}
});
});
</script>
<div id="Content" >
</div>
</body>
</html>
```

Thanks,
Harisha P



Comments: I see a couple of problems. * You're referencing both the minified and non-minified versions of SPServices. * I'm not sure what the "debugger;" line is supposed to do, but I think it's undefined. You should use the debugger to figure out where the error is occurring. When you run into something like this, please post in the Discussions. We'll kick it around there and convert it into an issue in the Issue Tracker if it is indeed an SPServices problem. I'm going to close this issue, but if you are still having problems, please post to the Dicussions. M.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>