Library code snippets tagged with javascript
-
Debugging client JavaScript in VS 2005
by Ziemowit
Short guide how to debug client JavaScript in VS 2005.
-
The AJAX "Top 5" security tips
by Moe Tarhini
There is no doubt that AJAX and AJAX-style technologies are the way forward for web design. Developers can create true "applications" on the web like never before - however care needs to be taken with AJAX, in order to keep web sites secure.
-
Validate Phone or Fax Number
by Pradip Patel
This is a small javascript function that can be used to validate a phone or fax number.
-
Building an 'AJAX' ProgressBar in Atlas
by Wilco Bauwer
Learn how to write a basic, client-side Atlas progress bar, and download the source code.
-
How to disable all elements on a form
by Edward Tanguay
You almost always want to have your form to be disabled as soon as the user pressed the submit button so that the user doesn't accidently submit the form twice. Here's how.
-
Trimming form fields
by Andy Clarke
Web forms often ask visitors for non-essential information, but long and complicated forms can seriously hinder the e-commerce sales process. Wouldn't it be cool to give users the option to hide these optional fields at their own discretion, and with a clever use of Javascript, the DOM and some CSS we can!
-
Add a JavaScript popup to an ASP.NET button
by Edward Tanguay
How to add a javascript popup (alert) question to an ASP.NET button control.
-
Display the Current Day of the Week
by David Nishimoto
How to display the current day of the week.
-
MS Agent in a web site
by Warren
Ever wondered how to use the MS Agent characters from your website? This example demonstrates how, using JavaScript and VB Script
-
Force case restrictions
by Super Tal
Change a text field to all lowercase or uppercase before submitting.
-
Determining Client Capabilities
by Peeyush Nigam
Determine the capabilities of a client browser from the resolution to the user language.
-
Highlighting phrases in text
by David Nishimoto
Returns a character phrase with html highlighting a Pattern. The hightlight is dependant on the Type.
-
News Scroller
by Peeyush Nigam
Javascript News Scroller for IE 5 and above
-
Building a MultiDimensional Array in Javascript
by David Nishimoto
Building a MultiDimensional Array in Javascript
-
Autolink
by David Nishimoto
Automatic jump to a url on when the mouse moves over a link
-
User Defined Splice function
by David Nishimoto
Returns all previous character up to the pattern match
-
Rotating Images
by David Nishimoto
Rotating Image and Dynamically Change the Link
-
Animated Text
by Peeyush Nigam
Animate text using JavaScript
-
Finding a string inside a larger string
by David Nishimoto
Explains how to find a string inside of a bigger string
-
Combining Javascript and DOM
by David Nishimoto
David Nishimoto demonstrates accessing the Document Object Model available in IE 5 from your javascript code