Here's a strange problem. Maybe a bug. I have also mailed (bugs @ runrev . com) about the matter.
When I use "answer file" in a revlet running on Firefox 3.6.13 it crashes and Windows (Vista Business) reports: "revWebPlayer for Win32 has stopped working."
This comes after trying to open a file. The code parts involved are shown below.
On desktop version and when running the revlet on IE8 the code works. It is just on Firefox I get the error.
In the Standalone Application Settings I have checked "Ask Dialog" and "Answer Dialog" and included the "internet" and "SSL and Encryption" script libraries. On the Web tab I have checked "Disk","Network and "Privacy" and all platforms supported.
I have the latest plugin (4.0.0.950).
Anyone have any idea?
Thanks
Code: Select all
on menuPick pItemName
global theFilePath
switch pItemName
case "Open"
get openFile()
break
end switch
end menuPick
function openFile
global theFilePath
answer file "Open data file"
-------------------------- program crashes here -----------
if it is "" then return false
put "file:" & it into theFilePath
put URL theFilePath into fld "SourceField"
return true
end openFile