I figured out how to get onsaverequest to work and only added the UI
Alert to see what was in the object, but filename is always blank:
function XDocument::OnSaveRequest(eventObj)
{
XDocument.UI.Alert("Filename is:"+eventObj.FileName);
eventObj.IsCancelled = eventObj.PerformSaveOperation();
XDocument.UI.Alert("Filename is:"+eventObj.FileName);
eventObj.ReturnStatus = true;
XDocument.UI.Alert("Filename is:"+eventObj.FileName);
}
What I want is the filename and path in one string if possible. HELP!
kookie - 05 Apr 2007 00:14 GMT
var sFileName = XDocument.URI; // file path URL
> I figured out how to get onsaverequest to work and only added the UI
> Alert to see what was in the object, but filename is always blank:
[quoted text clipped - 9 lines]
>
> What I want is the filename and path in one string if possible. HELP!