New answers tagged

1

In Office 365, I created a new site (not a personal site). I then opened the site in SharePoint Designer and imported the files into Site Pages. I renamed index.htm to index.aspx I right-clicked on index.aspx and set it as the home page. This works for single html page sites. For multi-page websites you will need to rename all html files to an ...


3

You should be able to insert your HTML code in a copy of the default master page you are already using, download it locally and and then publish it and set it as masterpage for your sites using O365 dev PnP Powershell cmdlts. As i'm not using O365 myself i haven't been able to try it out but should be doable. OfficeDevPnP.PowerShell Commands There are ...


0

//try this to create a new file with your own content < div > < button onclick = " createfile ()" > Click here to createfile < /button> < div id = " resultpanel " > < /div> "> function createfile (resultpanel) { var clientContext; var oWebsite; var oList; var fileCreateInfo; var fileContent; clientContext = new SP.ClientContext.get_current(); ...


0

<table> <tr> <td> Upload: </td> <td> <input id="uploadInput" type="file" /> </td> </tr> <tr> <td colspan="2" style="float:right"> <input id="uploadDocumentButton" type="Button" onclick="uploadDocument()" value="Upload ...


0

If your environment is SharePoint 2013, then you can use REST API. Find MSDN references of it below. Upload a file by using the REST API and jQuery Working with folders and files with REST Use XMLHttpRequest instead of jQuery as your are looking for JavaScript solution.


0

With "simple" REST API, you can do almost anything you can do with the JavaScript API. The REST API does not require any SP.js or other SharePoint JavaScript file. You can consume this REST API from any language, and also from JavaScript (with jQuery to simplify the Ajax calls). To upload a file, you'll find your happiness here: ...


8

Check http://sharepoint.stackexchange.com/a/52877/35604: <script type="text/javascript"> function Custom_Submit(command) { SP.Ribbon.PageState.Handlers.showStateChangeDialog(command, SP.Ribbon.PageState.ImportedNativeData.CommandHandlers[command]); } </script> <input type="button" ...


1

If you're not going to use InfoPath then you're definitely going to be looking at creating a custom form using HTML and some other custom logic to do the submission for you. The lowest barriers to entry will be JavaScript on the client, or C# in a provider hosted Add-in or server solution. I strongly recommend you consider JavaScript (REST or the JavaScript ...


0

If you are using on-premise SharePoint version, writing a visual web part would be easier in terms of writing code. Otherwise, I would say REST API is the way to go.



Top 50 recent answers are included