[thelist] Form CSS styles

.jeff jeff at members.evolt.org
Fri Jan 18 11:48:35 CST 2002


andrew,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Andrew Clover
>
> > 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? :-(
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

yeah, which is kind of the opinion i arrived at as well when i was trying to
accomplish the same thing.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> 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.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

yes, and quite difficult to ascertain the source of the problem.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>  - it's completely out of character for Microsoft. ;-)
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

from a "give the developer as much control as possible" viewpoint and not a
"what's security?" viewpoint right?

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > 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!
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

hmmmm, now that could be nice.  just make sure it behaves like a <select>
from a script standpoint.

for example:

 - if i set it's selectedIndex it automatically changes
   the "option" that's displayed.
 - ctrl+mouse click will select more than one "option"
   when in multi-select mode
 - if in multi-select mode, i can select more than one
   "option" simply by setting any number of "options'"
   selected property to true;
 - arrow keys cycle through "options"
 - pressing "o" key three times shows me the third
   "option" that starts with the letter "o".
 - i could use my own <select> behavior script like
   the one at the url below with little to no
   modification:

   http://members.evolt.org/jeff/code/select_keydown.cfm



additionally, it would be nice if it supported icons for each "option".  and
finally, it started out as a normal <select> which was replaced with the
dhtml version for those browsers that would support it (make sense?).

thanks,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/






More information about the thelist mailing list