Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript open file dialog

Status
Not open for further replies.

dinodigital

Technical User
Jun 24, 2007
9
AU

I was hoping to get some assistance with creating an openFileDialog only using javascript. I am unable to use the <input type="file"> method, but am wanting to keep it all javascript. I can see that the direction to go in is JOOLE objects and FileSystemObjects, but I am having some trouble making sense of objects I need to use. If anyone knows of an easy way any assistance would be appreciated.


Alternatively, is there a way to pass from a javascript function in one program to a javascript function in another program?


I am using Hyperion and am needing an openFileDialog within a dashboard - any ideas would be great.

Thanks
 
Why are you unable to use [tt]<input id=myfile type=file>[/tt]? You could hide this and open the dialog using [tt]document.getElementById("myfile").click()[/tt]. Although, some browsers will clear the field when the form is submitted via JavaScript. There is, however, a work-around of putting the field in a hidden iframe. This is how Google does it to attach files in Gmail.

Adam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top