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
Reply

Join Date: Jul 2008
Posts: 1
Reputation: frylock is an unknown quantity at this point 
Solved Threads: 0
frylock's Avatar
frylock frylock is offline Offline
Newbie Poster

Acrobat 5.0 and JavaScript

 
0
  #1
Jul 13th, 2008
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.
Last edited by frylock; Jul 13th, 2008 at 5:52 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC