Skip to main content

Posts

Showing posts with the label sharepoint

AJAX to Sharepoint Server with Phonegap and JQuery Mobile not working

I have the following Problem. In the Phonegap App(for Android) I want to make an AJAX-Call to connect with a Sharepoint Server, with the following Code: $.ajax({ url:"https://xxx/_vti_bin/lists.asmx", beforeSend: function( xhr ){ xhr.setRequestHeader( "SOAPAction", "http://schemas.microsoft.com/sharepoint/soap/GetListCollection" ); xhr.setRequestHeader("Content-Type","text/xml; charset=utf-8"); }, dataType:"xml", contentType: "application/xml; charset=utf-8", timeout:10000, type:'POST', cache: false, username: "username", password: "password", data: soapEnv, success:function(data) { // alert data var serializer = new XMLSerializer(); serialized = serializer.serializeToString(data); alert(serialized); }, error:function(XMLHttpRequest,textStatus, errorThrown) { // alert errors aler