The PDF list is a service provided by PDFzone.com | http://www.pdfzone.com
__________________________________________________________________
Caveat: Javascript Dummy talking ;-)
If what you want is for the alert to disappear on June 16, then I think you need to
change this line in your script to:
-------------------------------------------------------------------
if (nowDate.valueOf()<= expireDate.valueOf()){
-------------------------------------------------------------------
You have dates in the ( ) which I don't think should be there. And you need to say,
"less than or equal to" (<=) instead of "greater than or equal to" (>=).
Hope this might help.
Ivan Lee
Senior Technical Writer
The opinions expressed here are that of my own and not of my employer
-----Original Message-----
Expire date not working in Alert!
This alert worked really well; however, it did not expire on the
16th of June.
I manually removed the Alert.
Please see code below. thanks...
-
//<ACRO_Document-Level>
//<ACRO_source>AlertOn</ACRO_source>
//<ACRO_script>
/*********** belongs to: ACRO_Document-Level.AlertOn ***********/
function AlertOn()
{
}//<ACRO_Document-Level>
//<ACRO_source>AlertOnDate</ACRO_source>
//<ACRO_script>
/*********** belongs to: ACRO_Document-Level.AlertOnDate ***********/
function AlertOnDate()
{
}function AlertOnDate()
{
}var expireDate = util.scand("mm/dd/yyyy", "06/16/2003");
var nowDate = new Date();
if (nowDate.valueOf("06/10/2003")>= expireDate.valueOf("06/16/2003")){
app.alert("Become familiar with these procedures before the Disaster
Recovery Walnut Test June 13, 14, and 15. Click OK to continue!");
}
//</ACRO_script>
//</ACRO_Document-Level>
Linda Kelley - Senior Technical Writer
Alliance Data Systems - Service Delivery Tech Pubs
[EMAIL PROTECTED]
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdf.html