Sorry, made an error, o must be 0 :-)
So this will work :-)
> function trim(incomingString){
> while(''+incomingString.charAt(incomingString.length-1)==' '){
> incomingString = incomingString.subString(0,incomingString.length-1);
> }
> return incomingString;
> }
>
> ----------
> From: Hoorn, Michiel van
> Sent: Friday, April 27, 2001 11:34 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Off Topic: Trim
>
> Nope, but this works, written by me :-)
>
> function trim(incomingString){
> while(''+incomingString.charAt(incomingString.length-1)==' '){
> incomingString = incomingString.subString(o,incomingString.length-1);
> }
> return incomingString;
> }
>
>
>
> ----------
> From: Eduardo Miguel Oliveira[SMTP:[EMAIL PROTECTED]]
> Reply To: [EMAIL PROTECTED]
> Sent: Friday, April 27, 2001 11:24 AM
> To: [EMAIL PROTECTED]
> Subject: Off Topic: Trim
>
> Is there anything similar to VBScript's TRIM in JAVASCRIPT???
>
> Tx
>
>
> Eduardo Oliveira
>
> S-Tecno - Servi�os em Tecnologias
> de Informa��o
>
> R. General Ferreira Martins, 10, r/c B
> Miraflores 1495 - 137 Alg�s
>
> Tel 21 412 15 80 Fax 21 412 15 83
>
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets