We do what we call Auto Fills. These are Adobe documents that when brought up from our web site will automatically fill in some data from files stored on the user’s computers.
This is done with the script shown below. These have been working for the past 3 years
With Adobe 5, 6 & 7. Some of our users have started getting Adobe 8 and the script no longer works. There must be some Adobe 8 secret I am missing to change or add to the script to allow the documents to work with Adobe 8.
//
//StartMe
//
/*********** belongs to: Document-Level:StartMe ***********/
function StartMe()
{
DataPath = "C:\\seid.dat";
importTextData(DataPath,0);
var Seid = this.getField("seid");
var Seidv = Seid.value;
DataPath = "D:\\users\\"+Seidv+"\\SBU data\\Form9856.dat";
importTextData(DataPath,0);
var DataPath ;
DataPath = "C:\\Documents and Settings\\"+Seidv+"\\SBU\\Stop.dat";
importTextData(DataPath, 0);
DataPath = "C:\\Documents and Settings\\"+Seidv+"\\SBU\\IDRSnumber.dat";
importTextData(DataPath, 0);
var d = new Date();
this.getField("date").value = (d.getMonth()+1).toString()+"/"+d.getDate().toString()+"/"+d.getFullYear();
}
//
//
//
//Page1:Page Open:Action2
//
/*********** belongs to: Page-Actions:Page1:Page Open:Action2 ***********/
StartMe();
//
//
Thanks in advance for your help.
Leo
This message will appear in the JavaScript debugging console.
Sounds like you have been caught by Adobe changing the order in which a document and page are initialized. Your page open script may be running before the document initialization script is run. Causing the "StartMe()" function to be undefined. If this script is to be run one at initialization there is nothing stopping one from placing the call right after the definition of the function.
George Kaiser