🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.reader
Article #9694

TypeError: this.getField is not a function

#9694
From: bob_kennelly
Date: Thu, 11 Jan 2007 23:03
29 lines
1930 bytes
Hello,

I'm getting an error message saying that: <<<<<<<<<<<<

this.getField is not a function

TypeError: this.getField is not a function
4:XFA:form1[0].sf1[0].CheckBox1[0]:click

I ran this code to try and debug the problem: <<<<<<<<<<<<

console.show();
console.clear();
//console.println("event.target.isBoxChecked(0) = " + event.target.isBoxChecked(0));
console.println("event.target.value = " + this.getField(event.target.name).value);
// end debugging code
// show field Text17 is this check box not checked
this.getField("TextField1").display = event.target.value == "Off"? display.visible: display.hidden;
// or
this.getField("TextField1").display = event.target.isBoxChecked(0) == 1 ? display.visible: display.hidden;

and got: <<<<<<<<<<<<<<<<<<<<< TypeError: this.getField is not a function 4:XFA:form1[0].sf1[0].CheckBox1[0]:click

If found an example on the web and ran it in Adobe professional that used the "getField()" function and it ran on my copy of Adobe, is it possible that the JAVASCRIPT is embeeded in the example Adobe form and not built into my version of Adobe?

Also, when i do a . after the this. i don't see the getField function appear in the popup function list either!

Thanks for any insights
BobK
Technical Details
Message-ID: <3bc2d328.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: 10273d,c507e024c71ece9,start
X-Google-Attributes: gid10273d,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: bob_kennelly@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing
Newsgroups: adobe.reader
Subject: TypeError: this.getField is not a function
Message-ID: <3bc2d328.-1@webcrossing.la2eafNXanI>
Date: Thu, 11 Jan 2007 15:03:50 -0800
Lines: 39
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit