none
Creating wiki page using the list item using the java script RRS feed

  • Question

  • using (SPSite site = new SPSite("http://sharepoint"))
    {
      SPWeb rootWeb = site.RootWeb;
      SPList wiki = rootWeb.Lists["MyWiki"];
      SPFolder rootFolder = wiki.RootFolder;
      SPFile wikiPage = rootFolder.Files.Add(String.Format("{0}/{1}", rootFolder, "My Wiki Page.aspx"), SPTemplateFileType.WikiPage);
      SPListItem wikiItem = wikiPage.Item;
      wikiItem[SPBuiltInFieldId.WikiField] = "My Wiki Page with [[wiki link]]";
      wikiItem.UpdateOverwriteVersion();
    }
    Hi in the above code using i have to convert code to javascript where in the above code we are converting the SPFile wikiPage = rootFolder.Files.Add(String.Format("{0}/{1}", rootFolder, "My Wiki Page.aspx"), SPTemplateFileType.WikiPage); in the same way we have to write code using java script ...So finally my question is how can i write java script using the above code..and i have followed some web sites ie..http://darrenjohnstone.net/2008/07/22/examples-for-the-sharepoint-and-office-live-javascript-api/
    here in this site i am using refernce for converting the java script..So can any one please help me..
    Advance Thanks
    Sreedhar tottempudi 

    Wednesday, August 17, 2011 2:50 PM