Forcing JavaScript reload in Internet Explorer
If you develop websites in Internet Explorer you may experience trouble reloading your updated JavaScript. I ran into this problem myself when developing SharePoint Online apps using IE11. The...
View ArticleFixing the ‘PRM_ParserErrorDetails’ problem for SharePoint Apps
Today I finally solved a problem that I have been trying to hunt down for a long time. I haven’t been able to find any good help on this elsewhere, so let me share how I solved it. This is my setup: I...
View ArticleUsing wildcard matching in any programming language
Most computer savvy persons are familiar with using wildcards when listing files and similar operations. Wildcards are quite easy to understand and use. An asterisk * means match anything, and the...
View ArticleEdit SharePoint property bags with SpPropertyBag.js bookmarklet
SpPropertyBag.js is a drop-in JavaScript for editing SharePoint web properties (the “property bag”). Simply paste the script into the JavaScript console and run it to open a dialog where you can view,...
View ArticleParse Visio SVG drawings with Snap.svg
This tutorial shows how to: Load and work with SVG files using the Snap.svg JavaScript library. Parse SVG drawings exported from Visio 2013 to read data and interact with the shapes. To help with this...
View ArticleHeads-up if you use ADAL.JS on a site added to the “Trusted Sites” zone
When working on a SharePoint Online solution that is using the ADAL.JS library for authentication, a customer reported strange problems. In our solution, our site sends the client to the authentication...
View ArticleExtending the JavaScript console with history recording
The browser JavaScript console is a web developers best friend. Using console.log() is essential for debugging your web apps. But there are a few annoyances. Two things that bother me for a while are:...
View ArticleInternet Explorer: ScriptImports is undefined
Today I spent way too much time on hunting down a bug that occurred in Internet Explorer 11 running our intranet solution on SharePoint Online / 2016. The problem showed itself by throwing the...
View ArticlePopup opens as new browser window in Edge and Internet Explorer
Problem: Opening a popup with JavaScript in Edge or Internet Explorer results in a new browser window instead of a popup window. For example:var popup = window.open("https://www.duckduckgo.com/",...
View ArticleOpen a SharePoint list in classic experience if link is missing
The modern list experience in SharePoint is the default by now. But you can still revert to classic experience by clicking the link under the left navigation. But on communication sites the left nav is...
View ArticleShow React dialogs fluently with hooks and promises
Suppose you have a React component that displays a modal dialog and returns the result:<Dialog message="Are you sure?" onClose={onCloseDialog}>The typical way to use it would be to have a state...
View ArticleUsing emojis for easier JavaScript debugging
I normally don’t care much for emojis, but lately I’ve found them to be helpful when working with JavaScript. The JavaScript console may not be the most elegant way to debug, but it’s the quickest and...
View Article