These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Show/hide area boxes

Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766

Hi,

I can't figure how to switch boxes ON/OFF using JavaScript and I can't find any document related (JavaScript ref, etc.)…

[url=http://imagesinsolites.free.fr/parkimages/boxes-1284398537289.png][img]http://imagesinsolites.free.fr/parkimages/boxes-1284398537289_s.png[/img][/url]

???

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
I've never heard of a way. As you know, most user preferences are not controllable via JavaScript.
Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
The guru (I can't give his name) said: wrote:
Preference name is "DisplayBoxes".
All preferences, including these, can be controlled via scripting.
The guru also said -It’s a preference value, not an actual property for the object-, but since I’m not a JavaScript programmer and since my knowledge is pretty elementary I didn't really understand his reply.

I tried this (see below), console reply "true" but nothing happens, boxes stays as is (hidden or visible), and the preferences panel too.

Can someone help me to change area boxes visibility using JavaScript?

Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
What I’m doing wrong?


app.DisplayBoxes = true;



app.displayBoxes = true;



this.displayBoxes = true;



this.DisplayBoxes = true;

Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
up !
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Since when are you not a JavaScript programmer? :^)

I'm skeptical. What he said doesn't make sense to me either. Maybe he can show you?
Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
George_Johnson wrote:
I'm skeptical. What he said doesn't make sense to me either. Maybe he can show you?
I hope…, but he seems to became dumb…
I'll give the answer here if ever I get it.
;-)
Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
up & help.Plleeeaaaassssseeeeee!
Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
OK, the guru replied to me : he says he made a mistake, I need a "real" plugin to do that, JavaScript cannot.

==> I guess that I'm the only one that needs to show/hide those boxes several times a day, since any Acrobat user must go into the Preferences to switch boxes display…Topic closed.