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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pb with <input type=file>

Status
Not open for further replies.

charroux

Programmer
May 28, 2001
4
FR
Hello,

I have a problem to retrieve a file under Netscape and IE4 by clicking on the

browse button with a onChange event.

How can I retrieve a file under Netscape in a <input type=text> which is choosen in an <input type=file> without other button than the browse button : only by clicking on the

browse button?

Thank you to answer me.
 
There is following strange symptoms, for the form with <input type=file...>:
In Netscape:
onchange: only when you change text part by hands
onclick: _after_ you have selected (or cancelled selection) file in browse dialog
In IE5:
onchange: after both types of change
onclick: _before_ clicking either on &quot;Browse&quot; button or on text field part.
In Opera4:
None of these two event handlers fired in either case.

Please be more specific in your needs.

PS: Sorry for my English.
Michael Dubner
Brainbench MVP/HTML+JavaScript

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top