quantass
February 6th, 2005, 11:44 AM
We want to allow the user to upload their files to our website. We've tried adding in the ability to drag-drop their desktop items onto the webpage using the following Javascript code:
ondragenter="cancelEvent()" ondragover="cancelEvent()" ondrop="Dropped()"
but cant seem to retrieve the actual file path from the dropped icon. Unfortunate. Now I'm directly focusing on the <input type="file"> object. I remember this thing back when HTML was on version 1 and it still looks and acts the same, unless I'm mistaken. It has this awful looking Browse button which I would like to visually change.
How can i modify the appearance of this Browse button to my own custom button/image? Or is there an alternative approach to opening the File Dialog, as the Browse button does, and then returning the data into the text box? I've looked into ActiveXObject("UserAccounts.CommonDialog") but have received ActiveX security warnings which I'm trying to avoid in case the user has kicked up their Internet security settings to HIGH.
Perhaps the ActiveXObject("Microsoft.XMLHTTP") could be of use to me?
Thanks for any tips. I only need to support IE 5.5 and higher on Windows. I'm currently scripting in Javascript.
ondragenter="cancelEvent()" ondragover="cancelEvent()" ondrop="Dropped()"
but cant seem to retrieve the actual file path from the dropped icon. Unfortunate. Now I'm directly focusing on the <input type="file"> object. I remember this thing back when HTML was on version 1 and it still looks and acts the same, unless I'm mistaken. It has this awful looking Browse button which I would like to visually change.
How can i modify the appearance of this Browse button to my own custom button/image? Or is there an alternative approach to opening the File Dialog, as the Browse button does, and then returning the data into the text box? I've looked into ActiveXObject("UserAccounts.CommonDialog") but have received ActiveX security warnings which I'm trying to avoid in case the user has kicked up their Internet security settings to HIGH.
Perhaps the ActiveXObject("Microsoft.XMLHTTP") could be of use to me?
Thanks for any tips. I only need to support IE 5.5 and higher on Windows. I'm currently scripting in Javascript.