Home
 
The page you are viewing is part of our 160,000 page PDF discussion forum archive spanning 1999-2011.
Go to the new Planet PDF forum to join the PDF community.
 

Search
 Advanced   
Sign up for a WebBoard account Archive Forum Home


PLATINUM
SPONSOR

GOLD
SPONSORS



Topic  
Go to previous topicPrev TopicGo to next topicNext Topic
Author Message
Lightning
Lightning

Total Messages 45

Subject:Bookmark Properties

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 field. I can get the name to appear once the user clicks on the bookmark but 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?

Thanks


Posted: 10 Oct 2009 01:23 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
prodok
prodok

Total Messages 3218

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
Left Button SpacerView user's profile profileRight Button Spacer
 
 
   
Go to previous topicPrev TopicGo to next topicNext Topic

go




Top | News | Developer | Find PDF Tools | Sponsorship | Tips | Home



Debenu's Planet PDF - a comprehensive site exclusively focused on Adobe Acrobat/PDF users and uses. Debenu's Planet PDF - Resources for Adobe Acrobat and PDF users

Please post PDF-related questions to our Planet PDF Forum forums.planetpdf.com. To send comments about this site please visit our contact page.
Planet PDF, Planet PDF Forum, PDF SDK - Debenu Quick PDF Library and Debenu are all copyright
© 2011 Debenu Pty Ltd.. All Rights Reserved. Privacy policy.