Best Practices to Write JavaScript for Project Online (part 1)

Posted By Posted by: EPM Partners on May 24, 2017

Checking the Web Part page design mode

In this series of blogs, I’ll share some of the best practices I use to write better JavaScript to customise Project Online screens.

The first tip is about detecting the web part page edit mode. Frequently, we write scripts to manipulate UI of the page and if the user is already editing the page, our script can cause undesired behaviour.

We could either execute a different set of functions or at a minimum, just not execute the script in design mode to keep the user experience clean.

It’s relatively simply to detect the WebPart page design mode. Just add the following code to the startup your script.

In the next part of this series, I’ll talk about how we can detect if a Project Details Page is in Edit mode.

Blog Posted In Blog Posted In: Blog, How to, Project Online
Blog Posted In 

Leave a Reply

Your email address will not be published.