I am currently using SharePoint 2010
and SPServices.js
.
I am able to retrieve and update the value via SPServices
when using regular HTML
and ASP.NET
server control values using SPServices.js
and jQuery
via the following code:
$().SPServices({
operation: method,
async: false,
listName: list,
CAMLViewFields: fieldsToRead,
CAMLQuery: query,
completefunc: function (xData, Status) {
$("#spinner").hide();
$(xData.responseXML).SPFilterNode("z:row").each(function () {
var myCustomField = ($(this).attr("ows_SQI"));
var myCustomField2 = ($(this).attr("ows_SQIComments"));
UpdateFields(myCustomField, myCustomField2);
});
}
});
When the controls are the standard ASP.NET
controls, i.e. <asp:TextBox>
or a HTML
textarea, SPServices can retrieve the values fine and jQuery
updates them without any issues, however I recently changed these fields to a SharePointInputFormTextBox
:
<SharePoint:InputFormTextBox ID="txtProgressNotes" Rows="18" Columns="120" RichText="true" RichTextMode="Compatible" AllowHyperlink="true" TextMode="MultiLine" runat="server"></SharePoint:InputFormTextBox>
Now jQuery no longer updates the value.
My question is, does SPServices
support the retrieval of rich text and how are these fields updated via jQuery
?