morplug — 2011-09-18T09:02:19-04:00 — #1
I want to pop up alert when the user browse file into input
for example i have this input
<input type="file" name="myfiles" />
now , when the user finish to browse an file i want a function to start working ,
what i mean by finish browse file is when the user select file and than click on the file he selected twice and than when the browsing files windows close i want this function to start
how to do that?
paul_wilkins — 2011-09-18T09:38:40-04:00 — #2
There is no event for that, but what you could do is to start a setInterval event that polls the filename value. When the filename changes, you can cancel the setInterval event and trigger function that you want to start working.
morplug — 2011-09-18T11:46:16-04:00 — #3
can you give me example? and is there maybe an other way?
morplug — 2011-09-18T12:02:04-04:00 — #4