I'm very new to javascript and I'm using the popup calendar from formrouter.com. Is there anyway to hide the calendar on entering the page or leaving the page?
s jones
There is a lot of code there, I know because I've modified it several times. The code itself predates the existance of FormRouter. But I have to say that they (or really he, it was Dave Conoorozzo) did the best variation on it.If you look at the code on one of the date buttons and then trace the function calls backwards you'll find one named "FormRouter_ClearCalendar();" This will hide all the popup fields. Call this function on the page close event. Here's a tutorial: http://acrobatusers.com/tutorials/entering-page-actions Thom ParkerThe source for PDF Scripting Info pdfscripting.comThe Acrobat JavaScript Reference, Use it Early and OftenThe most important JavaScript Development tool in AcrobatThe Console Window (Video tutorial)The Console Window(article)Having trouble, Why Doesn't my Script Work
Thom,Thank you for the answer and tutorial. I will definitely watch the tutorial.sjones