Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - Scheduled Pop Up
  FAQ FAQ  Forum Search   Register Register  Login Login

Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

Scheduled Pop Up

 Post Reply Post Reply
Author
Jackie View Drop Down
New Member
New Member


Joined: 27 Sep 2013
Location: Melbourne Vic
Points: 15
Post Options Post Options   Quote Jackie Quote  Post ReplyReply Direct Link To This Post Topic: Scheduled Pop Up
    Posted: 27 Sep 2013 at 10:36am
Hi all is it possible to program a pop up to appear at a set time in the future i.e.,  10 October 2013 at 12:30

Thanx
Jackie
Back to Top
gkaiseril View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Location: USA
Points: 4111
Post Options Post Options   Quote gkaiseril Quote  Post ReplyReply Direct Link To This Post Posted: 27 Sep 2013 at 3:13pm

Yes but you need to write custom JavaScript to perform that task and figure out where the best place to locate the script is.

Back to Top
Jackie View Drop Down
New Member
New Member


Joined: 27 Sep 2013
Location: Melbourne Vic
Points: 15
Post Options Post Options   Quote Jackie Quote  Post ReplyReply Direct Link To This Post Posted: 28 Sep 2013 at 12:19am
Thanx, sounds like thats not the way to go.  Is it possible to have a field hidden then appear at a set date & time as an alternative to a pop up?
Jackie
Back to Top
gkaiseril View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Location: USA
Points: 4111
Post Options Post Options   Quote gkaiseril Quote  Post ReplyReply Direct Link To This Post Posted: 30 Sep 2013 at 12:59am
Sample code:
 
// formatting for event character string;
cFormat = "d/m/yyyy h:MMtt"; // day month year;
// character sring for event's date & time
var cDate = "28-09-2013 6:30am";
// convert event date & time to date object
var oDate = util.scand(cFormat, cDate);
oDate.setSeconds(0, 0); // clear values less than a minute;
// console.println(oDate);
// get the system's date objec;
var oNow = new Date();
oNow.setSeconds(0 ,0); // clear values less then a minute;
// console.println(oNow);
// get difference between system date & tme and the event date & time
var nDiff = oNow.Time() - Number(oDate);
// report result;
if(nDiff < 0) app.alert("before");
if(nDiff == 0) app.alert("equal");
if(nDiff > 0) app.alert("after");
Note the code will not constantly run, only when invoked.
Back to Top
Jackie View Drop Down
New Member
New Member


Joined: 27 Sep 2013
Location: Melbourne Vic
Points: 15
Post Options Post Options   Quote Jackie Quote  Post ReplyReply Direct Link To This Post Posted: 06 Oct 2013 at 2:16am
Thanx I appreciate that.
Jackie
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.051 seconds.