Linked Questions

2
votes
2answers
4k views

A way to identify when page is in Edit mode for JavaScript purposes? [duplicate]

As per client request, we created webzones which creates 'collapsible regions' of the content. So if you add multiple webparts to a 'collapsible region' zone, the webparts collapse and clicking on the ...
0
votes
1answer
409 views

Run javascript code only in publish page not in edit [duplicate]

I am running some javascript code in on page but I don't want it running when I try and edit the page. How can I stop this from running in edit page and only when the page has been published
0
votes
2answers
21k views

Expandable lists that expand and collapse with one click

I have a lot of text based lists on one page, so I threw them into content editor web parts so i can expand / minimize the lists. However, two clicks (one on the arrow and then one on "restore") is ...
1
vote
2answers
4k views

Source Querystring Parameter

I am trying to use the Source QueryString Parameter once the user makes changes to the Edit Form. Here's the Source URL I am using: https://mysite/sites/hhc/finance/ap/Lists/APInvoiceForm/EditForm....
1
vote
4answers
3k views

Angular JS in SharePoint 2013 script editor web part issue

I have written a very simple script to test angularJS ng-repeat. Here is the script <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js"></script&...
3
votes
1answer
2k views

Client Web Part - Determine if page is in edit mode

Like in topic. How to determine in a client web part (on remote web) if a page that the web part is placed on, is in edit mode? if it is possible?? Thanks
2
votes
1answer
335 views

Hide Master page left navigation and top ribbon but should be able to add webparts easily

I am developing master page. I don't want to show top ribbon and left navigation menu to user. So I am hiding it using css #s4-leftpanel,#s4-ribbonrow { display:none !important; } The challenge I ...
1
vote
1answer
628 views

Save/Leave Event after editing a Page

I need to fire some functionality from javascript when a user has finished editing a page and saves it or leaves the editing mode. Is there a possibility to catch the event?
0
votes
3answers
209 views

How to stop SharePoint from writing JavaScript code over and over?

I'm using PIE.js to force IE7 to use CSS3 styles. However, whenever an element on my SharePoint page contains the class that PIE is supposed to style, it actually inserts the code into the html when ...
1
vote
1answer
88 views

Javascript: How can I tell if the page is being customized (and not personalized)?

How do I know if the page is in Edit Mode from JavaScript? tells me how to know if a page is in Design mode. I need to distinguish between the two design modes: customizing vs personalizing. How can ...