[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [CF-Scripting] Simulate click() in <input type="file">



Russ Michaels (Snake) wrote:

- see footer for list info


Ohh ohh curved edges on form fields, I was just wondering if that was
possible with CSS somehow.

I doubt the browse button can be accessed htough as it's not anywhere in the
DOM, it's controlled by the OS.


If you're talking about the methods available in the DOM, there is the click() function, but its IE only.

To sort of cleanly close this thread. Tim was actually trying to get a file upload working from within a flash app. Generally a lot of flash apps use a hidden form and force the file browser to open using the click() method. This is all well and good, but not if you've got non-IE site users.

A bit of a search around turned up this : http://www.yamago.net/components/
Its a flash component that is capable of opening a file browser in any browser (or at least just about any browser) and seems to do the job pretty well.


Regards

Stephen