You are here: Code Snippets
LastNext21Page 1 of 2Record 1 to 10 of 14

Code Snippets

Favourite
VOTE 0

How to Read Contents of a File Using AJAX? | JavaScript

Code Snippet » By Blue Cloud On Jun 04, 2012 10:09:45 AM ,

For the security concern, client-side JavaScript does not provide any way to read, write, create, delete, or list files or directories on the client/server computer. But one can use Ajax to read the file. This code snippet can be used to read from a text file.

Categories : Programming | Tags : ajax, File
Favourite
VOTE 0

Internet Explorer HTML5 Enabler Script | JavaScript

Code Snippet » By Susan Haynes On Feb 21, 2012 5:59:13 PM ,

The JavaScript workaround to enable HTML5 elements in versions of Internet Explorer that do not support it. That is widely known as HTML Shiv. There is also a version called HTML Shim which does the same thing.

Favourite
VOTE 0

JavaScript Function getElementByClassName | JavaScript

Code Snippet » By Si Thu On Feb 07, 2012 10:02:16 PM ,

This is one of the useful function in my code bank. This function can be used to find the elements by css class name. If you don't use jQuery, it will be definitely helpful for you.

Favourite
VOTE 0

Loading External Javascript File Dynamically | JavaScript

Code Snippet » By Blue Cloud On Jan 18, 2012 8:04:40 AM ,

This can be used to load a javascript file dynamically.

Favourite
VOTE 0

Getting Current Domain Name | JavaScript

Code Snippet » By Blue Cloud On Jan 03, 2012 8:06:47 AM ,

To get current domain name of the page.

Favourite
VOTE 0

Get URL Parameter with JavaScript | JavaScript

Code Snippet » By Blue Cloud On Jan 01, 2012 11:27:50 PM ,

This is a JavaScript that helps you to get the URL Parameters of a page.

Favourite
VOTE 0

Watermark TextBox | JavaScript

Code Snippet » By Blue Cloud On Jan 01, 2012 11:23:46 PM ,

When textbox is empty, it show the watermarked text. When it get focus the watermarked text disappears. When it lost focus the watermarked text appears if there is no text.

Favourite
VOTE 0

Get All the Input Elements of the Page | JavaScript

Code Snippet » By Blue Cloud On Jan 01, 2012 11:13:35 PM ,

Easiest way to retrieve all the input elements within a page.

Favourite
VOTE 0

Select All Text of Textbox or TextArea When On Click | JavaScript

Code Snippet » By Blue Cloud On Dec 31, 2011 11:51:16 PM ,

This script highlight/select all text of textarea or text field when on click.

Favourite
VOTE 0

Create and Store a Cookie | JavaScript

Code Snippet » By Blue Cloud On Dec 23, 2011 8:14:51 PM ,

Cookie is a small text file that's stored in user's browser. They're mostly used for storing user preferences. It save the data with name-value pair format. Following function can be used to create and retrieve cookie values.

LastNext21Page 1 of 2Record 1 to 10 of 14