Hiding the formrouter.com's popup calendar

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

2 Answers

Voted Best Answer

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 Parker
The source for PDF Scripting Info pdfscripting.com

The Acrobat JavaScript Reference, Use it Early and Often

The most important JavaScript Development tool in Acrobat
The Console Window (Video tutorial)
The Console Window(article)

Having trouble, Why Doesn't my Script Work

By Thom Parker   


Thank you for the answer and tutorial. I will definitely watch the tutorial.


s jones   

Please specify a reason: