Do we have similar functionality in actionscript.  jQuery.ajax()
method ????

Below is the sample code in jQuery to update or create new list item
in sharepoint
http://weblogs.asp.net/jan/archive/2009/04/10/creating-list-items-with-jquery-and-the-sharepoint-web-services.aspx

 var soapEnv =
        "<?xml version=\"1.0\" encoding=\"utf-8\"?> \
        <soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-
instance\" \
            xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"; \
            xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\";>
\
          <soap:Body> \
            <UpdateListItems xmlns=\"http://schemas.microsoft.com/
sharepoint/soap/\"> \
              <listName>Value PoR</listName> \
              <updates> \
                " + batch + "</updates> \
            </UpdateListItems> \
          </soap:Body> \
        </soap:Envelope>";

        // alert(soapEnv);

 jQuery.ajax({
        url: "http://sharepointSite/_vti_bin/lists.asmx";,
        beforeSend: function(xhr) {
            xhr.setRequestHeader("SOAPAction","http://
schemas.microsoft.com/sharepoint/soap/UpdateListItems");
        },
        type: "POST",
        dataType: "xml",
        data: soapEnv,
        complete: processEditResult,
        contentType: "text/xml; charset=utf-8"
    });

-sara
http://www.designscripting.com

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to