New Code Snippets

15 January, 2020   

Error Loging in ASP.NET

JavaScript code example type of Operator

19 December, 2019   

innerHTML() is native and returns the contents of a DOM node .

Code example to check whether browser is a beta version

06 October, 2019   

Delphi code example to move columns in a TDBGrid

07 September, 2019   

Normally the tab key moves to the next focusable thing. This inserts a tab character in instead.

When a KeyboardEvent fires, you can test which key was pressed because that event contains information you can write logic against.

AppleScript Snippet to show hidden files in Terminal

C+ source code for Generate a spiral matrix for n elements

MySQL code to Find PHP code in database Drupal 6.x

13 May, 2019   

It makes things draggable and with a specified handle optionally

C++ source code for Output console text with type-writer effect

17 February, 2019   

Missing images will either just display nothing, or display a [ ? ] style box when their source cannot be found. Instead, you may want to replace that with a "missing image" graphic that you are sure exists so there is better visual feedback that something is wrong. Or, you might want to hide it entirely. This is possible because...

28 January, 2019   

Usually, when one event loads, it writes over any previous ones. Using this snippet, you can add several events to one page without any problems.

Apache Code example for blocking based on User-Agent Header

PHP code example to get All-Time Number of MySQL Queries

Asp code example to show the date a file was created

04 December, 2018   

PHP Code to create Unique AlphaNumeric

26 November, 2018   

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

13 November, 2018   

Types for use with the AdjustImage overloaded functions. The types define valid ranges of values for various function parameters.