Hi,
This seems like it should be very simple. I have poured over the documentation, looked at examples and had a previously working UpdateListItems operation from a feedback form. I revisit this a year later and now it no longer works. A few items
- when I use a newer Jquery such as 1.8 or SP Services 7.2 my xData response text comes up as undefined
- Running WSS 3.0
- When using the below library versions I get error code 0x0000000; which is no error, but no items are created
- I have an older deprecated batch process in a SOAP call which does work, BUT, that it works intermittently so I figured modermizing to the value pairs and SP services would behave more relaibly.
<script type="text/javascript" src="/js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="/js/jquery.SPServices-0.5.7.js"></script>
<script>
//SP Services Method
$(document).ready(function() {
$("#newTaskButton").click(function() {
CreateNewItem(url);
});
});
function CreateNewItem(url) {
$().SPServices({
operation: "UpdateListItems",
async: false,
batchCmd: "New",
webURL: "sss/sites/web",
listName: "Contact",
valuepairs: [["URL", url]],
completefunc: function(xData, Status) {
alert(xData.responseText);
}
});}
</script>