BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


JavaScript
Multiple Grid
Re: Trim Function in JavaScript
Re: Trim Function in JavaScript
Trim Function in JavaScript using Regular Expressions.
DHTML ScoreBoard Behavior
Re: JScript Super Class To Handle XML Transformations
Updated: Detect XML Parser version using Javascript
XML Cache using IE 5.0 Behaviour
XML cache on client for the desktop application website
Javascript XML element listing
Sorting Data Islands by clicking on the column header (using behaviors).
Simple JS Menu Tree using XSLT
xml report writer
Filtering Data Islands
Small XML/XSL application with JavaScript
Table Column sorting using XML, XSL and JavaScript
Display of Hierarchical Data Islands
x++ beta 0.2 release (includes ISAPI filter/interpreter)
HTTP File Commander
XML Ticker


 
 

 LAMP >>


By Daraesh Mistry
First Posted 03/26/2001
Times viewed 706

Trim function in Javascript


Summary As there is no trim function available in JavaScript this code snippet simulates the Trim function.

xxx

Additional information

Further additional information


Rate this article on a scale of 1 to 10 (1 votes, average 1)

Your vote :  

 LAMP >>



Latest comments on this article
Admin
By Ryan on 5/21/2008 9:45:50 AM
Implement via regular expressions. Have a look at http://www.whadiz.com/c/whatis.aspx/programming/javascript/javascript_trim
By faetzminator on 4/30/2008 6:18:21 AM
this is a really stupid way to do this - look for regex, guy!


Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML