Snippets

Load jQuery Library Dynamically using javascript

Added by Mind Hunter updated on Monday, November 20, 2017

In this snippet we will discuss how to test if jQuery is already loaded or not. Then we will load jQuery library dynamically using pure JavaScript code runtime.


Get Unique Element In Array | JQuery

Added by Nasir Mahmood updated on Friday, November 17, 2017

Since Jquery does not provide function to get unique elements from array. Although it has $.unique() function but according to documentation “This function only works on plain JavaScript arrays of DOM elements”.


Case insensitive search in array | Javascript

Added by Nasir Mahmood updated on Friday, November 17, 2017

JavaScript provide a Method indexOf() which is used to search object from array but this is case sensitive.

Jquery provide a method jQuery.inArray() To search object in array but this is case sensitive also i.e “a” is not equal to “A”.


Generic List Shuffler in C#

Added by Nasir Mahmood updated on Friday, November 17, 2017

Following is small snippet which is the implementation of Fisher–Yates shuffle in csharp. This is generic extension method so we can use it for any type of list.


Reload IFrame Url using Jquery

Added by Nasir Mahmood updated on Friday, November 17, 2017

Previously while working on Online Razor Editor I need to use IFrame for page preview, since code and preview are in separate tabs, so I decided to reload iframe contents on tab shown event. Now problem was how I can do this from client side using jquery? 

This is modified and compact code of original solution.


About

32 Tutorials
27 Snippets
6 Products

More

Contact Us

Contact us

Stay Connected