PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
_____________________________________________________________
The value of "ID" must be a number, you need to convert it to a string
On 11 Jul 2003 at 10:51, Bill Vanselow wrote:
> I'm looking to write a JavaScript that can read the value of a hidden field, and
> then check to see if
> the first 4 characters is equal to a string. Does anyone know how to do this?
> I've tried this script, but "substr" is not a valid method.
> var MyField = this.getField("ID");
var MyStr = ""+MyField.value; // concat a string to a number, yields a
string
// var MyStr = MyField.valueAsString; // Acro5.0 or later
> app.alert(MyStr.substr(1,4));
> thanks
> Bill
Regards,
dps
Dr. D. P. Story
Department of Mathematics and Computer Science
The University of Akron
Akron, OH 44325
tele: (330) 972-7514
e-mail: [EMAIL PROTECTED]
Home Page: http://www.math.uakron.edu/~dpstory/
Home of ...
e-Calculus: A Calculus I Tutorial on the WeB.
Written in TeX and converted to the PDF format.
See it at http://www.math.uakron.edu/~dpstory/e-calculus.html
and of ...
An Algebra Review in 10 Lessons
TeX to PDF
http://www.math.uakron.edu/~dpstory/mpt_home.html
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html