.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Create Folder Using Sharepoint Web service and javascript

Posted By:Sagar Pardeshi       Posted Date: February 10, 2011    Points: 15    Category: SharePoint    URL: http://www.dotnetspark.com  

Create Folder Using Sharepoint Web service and javascript (out Of Box)
 

if (window.XMLHttpRequest)
    	{
	    	
	
	        var ListName="Album";
	            
	        var UpdateItemXml = "" 
								+ "" 	
								+ "1" 	 
								+ ""+ Name+"" 
								+""+Name+""
								+ "" 
								+ "";
	
	        if(a == null) return false;
	        
	        a.open("POST",http://Serve:110/test/_layouts/_vti_bin/lists.asmx", false);   
	
	        a.setRequestHeader("Content-Type", "text/xml; charset=utf-8");   
	
	        a.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/sharepoint/soap/UpdateListItems"); 
	
	     	var strSOAP1 = "" 
							+ "" 
							+ "" 
							+ "" 	
							+ "" + ListName + "" 	
							+ ""+ UpdateItemXml + "" 
							+ ""
							+ ""
							+ "";
	        a.send(strSOAP1);  
	        
}


     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend