Answered
Hi,
Is there any equivalent "Trim" function in PDF Javascript ?
There is a need in project wherein i need to trim a value in text fields if it contains spaces so as to check wheather user has entered values or not
sample code may go like
if ( this.getField('textName').value.trim() =="")
{
//do something
}
but didnt found any such
Please help !!!
Regards
nit
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script