Post by benbenPost by Randy WebbWith a normal HTML file, I know the security issues prohibit setting the
value of an input type="file". Is there any setting that I can change
that will allow me to set/change the value of a type="file" input in an
HTA? Or maybe an ActiveXObject?
This application is local to me so I have full access to change any
settings I need to change. WinXP SP2 with IE6.
Are you trying to submit/upload a file to a server from your HTA?
No.
I have an alarm clock/timer application that has an array of times that
it checks for. For each time, a different sound can be associated with
it. All of that data is contained in a JS array:
alarmTime[0] = ['05','00','00','AM','fullPathToSound.wav'];
alarmTime[1] = ['06','00','00','AM','fullPathToSound.wav'];
alarmTime[2] = ['07','30','00','AM','fullPathToSound.wav'];
alarmTime[3] = ['08','00','00','AM','fullPathToSound.wav'];
and so on.
When I want to add a new one, I can simply go edit the JS Array and add
new ones. Thats simple for me. Not so simple for my 9 and 15 year old
daughters. So, I started on a second section of it that allows it to set
the times. When the setAlarm.hta is opened, it reads that .js file and
creates the inputs to show all the times they have chosen. They can edit
each, add more, and then save it.
What I have done for now is to have two inputs, one the File and one a
Text Input. When the File Input is changed, it updates the Text Input.
And the Text Input's value is set when the page is created. It works but
its messy (to me). I was hoping there was some way in the relaxed
Security Environment of an HTA that would allow the setting of the File
Input. Even if it means I have to create the entire page, then after the
page is loaded go back and update the File Inputs.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq