Tag: JavaScript
-
Found this to work really well for a WordPress custom theme where the only option I had was to drop an override via a header/footer plugin option: [sourcecode] <script> var ref= window.location.pathname; var search="/youruniquepagelink/"; if (ref.indexOf(search) > -1) { let myElements = document.querySelectorAll(".your-class"); for (let i = 0; i <…
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
So I ran across an interesting mystery a while back that I thought I would share the fix for once I had time to document it. I have a client that uses an embeddable SharePoint page within CRM to allow document uploads right from the front entity screens without having…
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
Create a JavaScript file called iecheck.js and paste the following in the snippet: [sourcecode language=”javascript”] function trueOrFalse() { return true; } function IeVersion() { // Set defaults var value = { IsIE: false, TrueVersion: 0, ActingVersion: 0, CompatibilityMode: false }; // Try to find the Trident version number var trident…
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
There may be cases where you don’t have as free of access to the meta information or web.config to set redirects in place. You can also do this with JavaScript! Here’s the snippet (place this in between script tags in the body or applicable section in the body that allows…