Return Text Snippets


Optimize your website loading time by compressing files into smaller size.

Two simple functions to read an write tab seperated files (like CSV files, etc).

25 March, 2012   

JavaScript Codes to show alert box on mouse over

26 January, 2013   

Once the keycode of the spacebar is detected, it returns false which disallow the entering of space.

17 November, 2011   

Example for some HTML <em> <strong> <dfn> <code> <samp> <kbd> <var> <cite> Tags

13 October, 2015   

This function removes all duplicated lines of the given text file.

Note that to add a new column to the query, just add in an input box to the HTML, the PHP generates an insert for each field.

01 October, 2011   

An example of Exception Handling in PL SQL

07 September, 2019   

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

The code includes the CSS which you can add to your stylesheet and please note a class has been added to the table tag.

22 August, 2012   

This JavaScript code will enable you to display text within your status bar that is typed line by line.

13 November, 2018   

Checks if the given string contains only valid ASCII characters. Returns True if so or False otherwise.

Two objects are included here, a reader and a parser. All you need to do is instantiate the xmlParser object and let it do the job for you. nextToken() will return the next token, which can be a tag or the text between 2 tags. the isTag() will determine if this is a tag so you can do something smart with it. Lastly you can jumpTo($tagname) if...

Sometimes you have some information on your page and your visitors might want to copy it. The easiest way is to provide a mechanism that allows them to simply click a button to do so. You have to paste this code into the head of your web page:

26 June, 2014   

Cool script changes your SELECT elements into a Select/Combobox element. Works in Firefox and IE 6+.

21 January, 2015   

Cool script changes your SELECT elements into a Select/Combobox element. Works in Firefox and IE 6+.

18 January, 2011   

Auto Select Textarea Text

24 December, 2012   

jQuery plugin code to image selection

12 September, 2012   

Delphi code example to draw rotated text

08 June, 2013   

Checks if the given encoding supports all the characters in the given string