Get Function Snippets


31 December, 2014   

Function that allows a Javascript cookie to be set after HTML has been output to the page.

Javascript append function "DOM Append Text and Element Functions"

26 August, 2015   

A program which gives a lexigraphic permutation generator.

27 April, 2013   

PHP code for Fast Triangular Numbers

Many applications, such as CuteFTP and Outlook Express, allows you to enter a password and use it when it is needed. However, if you forget your password, you cannot see it, because it's hidden behind asterisks ('****') characters. The following code snippet scans all windows on the screen and reveals the passwords behind the asterisks...

13 May, 2019   

It makes things draggable and with a specified handle optionally

PL/SQL code example for using the MAX function with having clause

Handy helper function which parses about any date and returns the same date in MySQL date/time format.

25 May, 2013   

PHP code for how to get Remote IP Address

17 October, 2011   

Just create a new module called modEnumWindows in your project and copy this code into it. The function getWindowList does the trick.

Get number of paragraphs in column 2 and display that number in an alert box. Including the one in the red box.

30 March, 2011   

Need to people out if they have been inactive for too long? Do it with this piece of code. This takes 3 functions to complete the inactive session task. 1. We need to check if the person is actually logged in using our isLogged function 2. We need the function to check the time the page loaded, and when the last page was loaded 3. We need a...

26 November, 2018   

Cross-browser method for testing for pop-up blockers.

How to calculate distance between Mouse and Element

04 May, 2011   

Need to people out if they have been inactive for too long? Do it with this piece of code. Introduction ----------------------- This takes 3 functions to complete the inactive session task. 1. We need to check if the person is actually logged in using our isLogged function 2. We need the function to check the time the page loaded, and when...

09 January, 2013   

Better way to handle Broken Image. Missing images will either just display nothing, or display a [ ? ] style box.

jQuery example code to add image to browser cache

05 May, 2012   

ASP code example to return a long representing the record count returned by an SQL statement

04 February, 2013   

Visual Basic code to check if value is decimal.

19 February, 2013   

PHP is_assoc_array function to check if given array is associative or not