Tag Info

Hot answers tagged

2

SharePoint may re-write your code in the content editor webpart. I suggest you take one of two approaches: In 2010/2013 you can create a txt file and store in a library. I suggest you place your code in that file and use the Content Link property of the Content Editor Web Part. This will avoid SharePoint overwriting your code or doing something funky ...


2

When entering HTML content into a SharePoint page or web part, it will always modify the markup using SharePoint's black box. There is, however, a workaround that might work for you: 1) Use a Content Editor web part (you can insert one into regular page content or a web part zone) 2) Put all of your markup in an HTML or TXT file stored in a document ...


1

May your problem is caused by MDS (minimal download strategy). Since your code is on the page but is not interpreted again, you have to attach it to the page lifecycle. For example with JQuery: $(function () { ExecuteOrDelayUntilScriptLoaded(function () { if (typeof asyncDeltaManager != "undefined") ...


1

Here is one approach I would take just to keep things as they are: If you want to remain true in using snippets as they are presented, simply load that value onto your custom .html page layout or .htm master template. Wrap it in a div element that has either a unique id or unique class name. Then from your custom java script file, modify the DOM based on ...



Only top voted, non community-wiki answers of a minimum length are eligible