PDA

View Full Version : Javascript + Temp Dir + Black Ice activeX



fmrock
09-26-2007, 01:27 PM
Hey everyone, I am using the Black ice active X control to display tiff images on a website.

I started testing this on a vista machine and think there is an issue with permissions. The active X downloads the tiff to the C:\\test.tiff location. However, it will not work.



var LocalFile="c:\\test.tif";


I tried



var LocalFile="%TEMP%\test.tif";


But this did not work. Does anyone have any ideas on how to reference the TEMP directory, which should have the correct permissions.

If i change the variable to



var LocalFile="test.tif";


This puts the file on the desktop (which i dont want), but will now work in vista.... anyone have any ideas.

fmrock
09-26-2007, 02:04 PM
If anyone has any ideas.. I am going crazy searching around with no luck.