[thelist] Styling the input tag button..mmmwahahhahahah!

Tom Dell'Aringa pixelmech at yahoo.com
Mon Mar 31 14:27:31 CST 2003


--- Jeff Howden <jeff at jeffhowden.com> wrote:
> 
> tom,
> 
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > From: Tom Dell'Aringa
> >
> > Yes yes, I know, its impossible blah blah blah. This is
> > just for fun at this point.
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> 
> until you've got so much time invested into it you start pulling
> your hair out looking for a solution.

Sure Jeff, throw a bucket of water on my fun fire.

> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > The file input object is merely set not to display and
> > the button calls the click() method of the input button.
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> 
> and it's the very call to the click() method of the file input that
> causes it to not work, unfortunately.

Riighhtt....doh. Didn't think of that. Since it's being done remotely
you mean..hmm. 

> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > Then, on the onchange event of the input object, I toss
> > in the value (the file selected) into my text box.
> > Neato.
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> 
> i'd call it neato if the file input actually still worked. 
> however, since it won't, i'd say it's novel at best.

Details..details...

> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > <input type="file" name="fi" style="display: none;"
> > onchange="this.form.tx.value = this.value;" />
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> 
> a file input does not have an onchange event handler.

And yet...it works..odd (at least in IE5.5.. where I did my
"extensive" testing...)

Ah well, I just got the word they said I can leave the browse button
plain..so I'm saved!

Tom

=====
http://www.pixelmech.com/
var me = tom.pixelmech.webDeveloper();

http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

"That's not art, that's just annoying." -- Squidward

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com


More information about the thelist mailing list