Tagged: snippet

Javascript 0

Create GUID/UUID in JavaScript

There might be situations where you would be creating GUID in Javascript, Currently JavaScript doesn’t have any Built-in method to generate the GUID/UUID. We could use Math.random() or Date().getTime() and generate a random GUID...

Javascript 0

How to Submit a Form using JavaScript

The easiest way to submit a form using JavaScript is by using HTMLFormElement.submit() method. This method does something similar to activating a submit button of the form. If a form control (such as a...

Javascript 0

Scope of variables in JavaScript

What is the scope of variables in Javascript? Scope in javascript refers to the variables and the functions which are accessible and in what context it will be executed. There are basically 2 types of scope...

Sitecore 0

How to rebuild sitecore search indexes?

You might come upon certain situations where you need to rebuild Sitecore search indexes instantly for ex: when you deploy huge contents into the live production environment if the indexes are out of date, or...

Javascript 0

Javascript URLEncode

Let us take a look at what would be the best approach for Encoding URL using Javascript. There are basically 3 Javascript URLEncode methods available. Types of Javascript URLEncode escape() will not encode: @*/+...