Using the website below and other websites with nearly the exact same solution we used the code below which comes from the website (naturally changed to match our website and our list). Below that I have provided the specific errors we are getting
http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx
var siteUrl = '/sites/MySiteCollection';
function updateListItem() {
var clientContext = new SP.ClientContext(siteUrl);
var oList = clientContext.get_web().get_lists().getByTitle('Announcements');
this.oListItem = oList.getItemById(3);
oListItem.set_item('Title', 'My Updated Title');
oListItem.update();
clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
}
function onQuerySucceeded() {
alert('Item updated!');
}
function onQueryFailed(sender, args) {
alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
}
-------------------------------------------------------------
Failure happens at clientContext.executeQueryAsync with the following details
description '$lineinfo' is undefined
message: $lineinfo' is undefined
name: "Type Error"
number: -2146823279
The location of this error in the automatically generated javascript in debug is function ExecuteOnClick(fnOnClick, oMaster).
For the ECB we are using the following:
<CustomAction
Id="AnIDIAmNotShowing"
RegistrationType="List"
RegistrationId="107"
ImageUrl="/_layouts/1033/Images/RTEDCELL.GIF"
Location="EditControlBlock"
Sequence="1"
Title="Set Task to Completed" >
we are explicting using the javascript object model.
Help...