[thelist] Form CSS styles

Andrew Clover and at doxdesk.com
Fri Jan 18 11:01:06 CST 2002


> i tried to do the same thing awhile ago and found that ie wouldn't upload a
> file if the click event was fired programmatically to open the browse
> dialog, as opposed to the user clicking on the file input's "browse..."
> button.

Oh, crap on a plate, you're right - at least in IE5.x/Win. That makes it
pretty pointless, eh? :-(

You can bring a browse-dialogue-box up with a click(), but if the user
selects a filename from it it makes the form reset-instead-of-submit
when submitted. This is really annoying.

> i'm guessing this is some sort of security thing.

You'd think so, except -

 - it's a very strange way of enforcing it, why not simply refuse to open
   the browse dialogue, like the other browsers?;
 - it's not really any kind of a security risk, as it's pretty clear the
   user is choosing a file to upload;
 - it's completely out of character for Microsoft. ;-)

> the main problem area [with styling selects], of course, being borders.

Yes. Maybe now my upload-styling script is clearly of no use I should
instead direct my efforts to one which replaces IE's <select> with a DHTML
version you could style more easily!

-- 
Andrew Clover
mailto:and at doxdesk.com
http://and.doxdesk.com/




More information about the thelist mailing list