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

Special PopAlert Window

pdfer
Registered: Dec 23 2010
Posts: 28
Answered

Can anyone tell how to make a message (Javascript) window pop open on a certain day, year and time. Then let the user click "OK" to close it. Then in another two weeks the same window will pop open with a different message. But, not expire the document. Simply, reminders.

Jackson C.

My Product Information:
Acrobat Pro 9.0, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Search for "popup window" on this site. You'll find a lot of info.

Then read the article on Dates and Times:
http://acrobatusers.com/tutorials/2006/date_time_part1

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

pdfer
Registered: Dec 23 2010
Posts: 28
This is the script I'm using -

function NavigateMenu()
{
var cDest = app.popUpMenu( "-","-", "Page 1", "-", "Page 2", "-", "Page 3", "-", "Page 4", "-", "Page 5", "-", "Page 6", "-", "Page 7", "-", "-", "Print", "-", "-", "Quit");

this.gotoNamedDest(cDest)
}

and what I'm trying to do is, have an option in the Drop Down Menu to Print and another option to Close the doc. But, I'm not having much luck figuring it out or finding anything like what I need on the internet. All the navigation works fine. Can someone help me out with the bit of code necessary to get this done. Thanks

Jackson C.

try67
Expert
Registered: Oct 30 2008
Posts: 2398
Accepted Answer
You can use something like this:

if (cDest=="Print") {
this.print();
} else if (cDest=="Quit") {
this.closeDoc();
}
else this.gotoNamedDest(cDest);

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

pdfer
Registered: Dec 23 2010
Posts: 28
After thinking about it I would like to also add a Full Screen option to the Drop Down Menu, but cannot figure out how to accomplish it. Thanks to try67 I was able to get the Print and Quit options to work, but now I trying to add Full Screen. Can someone can help me complete this option. Take a look at the script I have so far:

function NavigateMenu()
{
var cDest = app.popUpMenu( "-","-", "WorkSheet", "-", "Quote A", "-", "Quote B", "-", "Work Order", "-", "Work Order Copy", "-", "Gate Ticket", "-", "Shop Drawings", "-", "-", "Print", "-", "Quit");

if (cDest=="Print") {
this.print();
} else if (cDest=="Quit") {
this.closeDoc();
}

this.gotoNamedDest(cDest)
}

Thanks.
Jackson C.

Jackson C.

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
So what does this have to do with the original question?

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

pdfer
Registered: Dec 23 2010
Posts: 28
tomp,

Why even take up your time to reply, Tomp? I am relatively new, like many other people, to this site and unfamiliar with protocol regarding postings. FYI: I posted my original reply by accident and the wrong area. I have other postings is other areas. But nonetheless, I view this site similar to a place to chat on a user to user, friend to friend basis. Did not know I would get scolded and that someone would try to embarrass me for wrongful posting.

This is the second time you have replied without providing any help at all only providing some useless advice taking up my time. And, your recommendation that I read your article, on your expense paid site was completely off the mark and concerning something very different to what my original question was.

You should be a bit more understanding so that way, you don't waste your time replying needlessly to scold and embarrass people and still not providing help. It doesn't make sense why someone would reply as you have. Perhaps, the only reason for your replies is to get people on this site to your expense paid site.


Jackson C.