Tag Info

New answers tagged

0

Go to the "Page Library" where the page is stored and choose Edit. (instead of first opening the page). That way the page will not open in "read mode" and thus not redirect you.


0

This seems to work fine. Haven't tested in IE8 but I think it'll work. function getData(siteurl) { var endpoint = siteurl +"/_vti_bin/ListData.svc/ListName"; $.ajax({ url: endpoint, method: "GET", headers: { "Accept": "application/json; odata=verbose", "Content-Type": "application/json; odata=verbose" }, success: function (data) { //data ...


1

Use either of the following below. Don't put an anchor tag within the button tag. <button type="button" onclick="SP.UI.ModalDialog.OpenPopUpPage('/sites/SharePointInitiativeSandbox/Gatekeeper/_layouts/15/workflow.aspx?List={bc68b081-8590-477e-aff7-55b2b64ad3fb}&ID=');" class="btn" >Start Workflow </button> <input type="button" value ...


0

You are using an anchor tag inside a button and thats why the page reloads without opening the pop up. Modify your code like this: <button onclick="dialogfunction('/sites/SharePointInitiativeSandbox/Gatekeeper/_layouts/15/workflow.aspx?List={bc68b081-8590-477e-aff7-55b2b64ad3fb}&ID='); return false;" class="btn">Start Workflow</button>


1

https://jsfiddle.net/kusqtgw1/ If you try it with a normal button, like I did in this JS-Fiddle, does it work? Because it doesn't even work with your button without SharePoint. <input type="button" onclick="dialogfunction(...);return false;" class="btn" value="Start Workflow"/>


1

I've also had trouble linking to shared drives in older SharePoint versions. It tends to flip all of my backslashes (\) to forward slashes (/), thus turning the file path into a URL. Sometimes this occurred while editing, sometimes after saving. To determine if this is the issue, hover over the link after saving or publishing to confirm all of your slashes ...



Top 50 recent answers are included