| | |
Acrobat 5.0 and JavaScript
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
I'm using Adobe Acrobat version 5.0, and even the simplest string functions aren't working. Let's say I have a field called "name" and I want to get the second letter in that field. The following code should work unless someone slipped a narcotic into my morning coffee:
var f = this.getField("name");
event.value = f.substr(1,2);
This should do it. In the alternative, to make things even simpler, how about getting the length of the name field?
var f = this.getField("name");
event.value = f.length();
In both cases, my compiler says that there is no such function as f.substr or f.length.
What's going on? What am I doing wrong? Thanks in advance.
var f = this.getField("name");
event.value = f.substr(1,2);
This should do it. In the alternative, to make things even simpler, how about getting the length of the name field?
var f = this.getField("name");
event.value = f.length();
In both cases, my compiler says that there is no such function as f.substr or f.length.
What's going on? What am I doing wrong? Thanks in advance.
Last edited by frylock; Jul 13th, 2008 at 5:52 pm.
![]() |
Similar Threads
- onBlur event and focus in Adobe Acrobat 8 (Java)
- Text field length validation in Acrobat 8 (JavaScript / DHTML / AJAX)
- Calling a javascript function from C# (C#)
- learning php (PHP)
- database application on cd (JavaScript / DHTML / AJAX)
- Page Cannot Be Displayed & javascript:doNetDetect() Errors (Viruses, Spyware and other Nasties)
- Hijack this log (Viruses, Spyware and other Nasties)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Problem with page link.
- Next Thread: Onchange
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxhelp animate automatically beta box bug calendar captcha cart checkbox child class column cookies createrange() css cursor decimal design dom download dropdown editor element engine enter error events explorer file focus form forms frameworks google gwt html htmlform ie8 iframe image() images index internet java javascript jawascriptruntimeerror jquery jsf jsfile jump listbox math matrixcaptcha menu microsoft mimic mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent pdf php player post problem progressbar prototype rated rating regex runtime scale scroll search select session shopping size sql star starrating stars text textarea validation w3c web website window windowofwords windowsxp wysiwyg xml \n





