For some reason, i'm getting reports that the following code for creating file dialogs doesn't work in Vista. This was taken from MPScripts.net and replaced some old code using the windows API. Can anyone confirm this error as my whole house is full of XPs.
code:
function browseForFile (){
var BrowseFilter = "Text Files (*.txt)|*.txt|All Files|*.*";
var BrowseDialog = new ActiveXObject("UserAccounts.CommonDialog");
BrowseDialog.Filter = BrowseFilter;
BrowseDialog.Flags = "&H4";
BrowseDialog.ShowOpen()
return BrowseDialog.FileName;
}