| Subject: | Re: Bookmark Properties |
What am I missing?
... the else; that's one thing, and there is also the test code which
may not work reliably.
Test code first: the display.hidden etc. values are "shortcuts" for
the internal values (0,1,2,3), and it may be better to test for these
values.
The missing "else" path means that you test whether the condition is
given (hidden), and you show, but you will also have to specify the
action for the case when the condition is not given (visible)...
Hope this can help.
Max Wyss
PRODOK Engineering
Low Paper workflows, Smart documents, PDF forms
CH-8906 Bonstetten, Switzerland
mailto:max@prodok.com
http://www.prodok.com
[ Building Bridges for Information ]
[ Getting organized with PDFfolio ]
______________________
> I have a pdf of a seating chart. I created bookmarks of the names for
the chart. I created form fields to match the names. I want the user
to be able to click on a name and that name appear in the matching form fie
ld. I can get the name to appear once the user clicks on the bookmark bu
t I want it to disappear when they click on the name again. This is the
javascript I used:
> var m=getField("John.Doe");
> if(m.display==display.hidden)
> m.display=display.visible;
> What am I missing?
| Posted: 10 Oct 2009 01:48 AM |
|