The PDF list is a service provided by PDFzone.com | http://www.pdfzone.com __________________________________________________________________
Two things to check:
1. According to the JavaScript 1.5 Core Specification (accessible via the developer section of the Netscape website), the getFullYear(), the getUTCDate() and the getUTCMonth() methods were introduced with JavaScript 1.3.
Acrobat 4 (and 3) use the Core of JavaScript 1.2, and therefore don't know anything about those three methods. This is why your script fails in Acrobat 4. You might either create your own getFullYear() method, based on the methods used with JavaScript 1.2 and earlier, or in general use only methods from JavaScript 1.2 and earlier.
Hope, this can help.
Max Wyss PRODOK Engineering Low Paper workflows, Smart documents, PDF forms CH-8906 Bonstetten, Switzerland
Fax: +41 1 700 20 37 or +1 815 425 6566 e-mail: mailto:[EMAIL PROTECTED] http://www.prodok.com
[ Building Bridges for Information ]
______________________
Hi, anyone know how I could get this to work in Reader 4.x and 5.x? It works in 5.x. But can't get it to work in 4.x. I think it's because 4.x uses Acrobat-specific javascript? And this is "regular js"? As you can tell, I don't have a clue :-)
Trying to get a message to pop up on open until a certain date. Appreciate any help.
========================================== var expireDate = "20031030"; var nowDate = new Date(); var day = nowDate.getUTCDate(); var month = nowDate.getUTCMonth(); var year = nowDate.getFullYear(); var month = month + 1;
if (month < 10) { month = "0" + month; } if (day < 10) { day = "0" + day; }
var GMTdate = year + "" + month + "" + day
if ((GMTdate < expireDate)) { popme = app.alert("TYPE MESSAGE HERE"); }
To change your subscription: http://www.pdfzone.com/discussions/lists-pdf.html
