You are here: Re: How to apply a class to input type=file « HTML « IT news, forums, messages
Re: How to apply a class to input type=file

Posted by al jones on 04/03/07 01:29

On Mon, 02 Apr 2007 18:40:23 GMT, Mike Minor wrote:

> Sorry I'm so STUPID!
>
> I thought news groups were for asking questions...with responses like these
> it's a wonder any body bothers.
>
> And by the way, I have been studying Yukka's web site to try and pick up
> some tips. It's a nice and helpful site. Too bad his attitude comes across
> so negatively when he responds to questions here. He doesn't have any
> insight into what my superiors have asked me to do and what I'm trying to
> accomplish. He just puts it down to my supidity.
>
> Now that I think of it, he reminds me of a professor I had my freshman year
> of college. His VERY FIRST statment he made to our class was, "I don't
> answer questions." My first thought was, "then what the hell good are you as
> a teacher."
>
> In my humble opinion, if he can't say something helpful, he should just not
> respond. I am so sick and tired of the holy-er than thou attitudes I see so
> often here.......
>
> Mike
>
> "Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote in message
> news:y49Qh.29145$et1.3568@reader1.news.saunalahti.fi...
>> Scripsit Mike Minor:
>>
>>> I'm using CSS to modify the appearance submit buttons on various
>>> pages.
>>
>> That's generally counter-productive, since you increase the odds that they
>> won't be recognized as submit buttons. You also tend to get crappy results
>> e.g. on Windows XP, which has rather nice default appearance for submit
>> buttons but easily turns to a crude rectangle when you start "styling" it.
>>
>> So my primary advice on the problem is that you should stop creating it.
>>
>>> On one page I have an <input type="file"> line which
>>> automatically includes a BROWSE button.
>>
>> That's strange enough to many users, even without any further obfuscation.
>> Many people don't understand what file submission is. They _might_ know
>> that if they see a _familiar-looking_ file input widget. It seems that you
>> are aiming at preventing that.
>>
>>> I add the class="button" to the input type="file" line.
>>
>> Well, OK, that doesn't do anything, as such.
>>
>>> However, it doesn't apply the button's
>>> appearance doesn't change.
>>
>> Did you expect it to change? Why?
>>
>>> Instead it applys the appearance changes
>>> to the text input box.
>>
>> I suspect you have some style sheet, and I pretty much know that you have
>> errors in it.
>>
>> When you searched for an answer in the group archives before posting, did
>> you _really_ miss all those helpful "please specify the URL" or "tell us
>> the URL unless you want just waste everyone's time" notes?
>>
>>> Sorry, but the site is not up on the web yet, so I can't post a link
>>> for you to see it yet.`
>>
>> That's a _lame_ excuse. You can always upload a demo page.
>>
>>> What I have tried is the following:
>>>
>>> <input type=file size=77 name="FILE1" class="button">
>>
>> Well, that much was obvious from previous, except for irrelevant details
>> like the name and size attribute values. Just the rest remains hidden.
>>
>> --
>> Jukka K. Korpela ("Yucca")
>> http://www.cs.tut.fi/~jkorpela/

Mike,
For what it's worth Jukka's probably one of the more helpful people here -
just not the most diplomatic. You asked a question - and rather than
getting the answer you wanted, you were told that it probably wasn't the
best thing to try to do - with reasons (and, hey, you DID get reasons!)

I won't re-iterate the others comments about following convention, you
didn't and got the flack for it. Different groups, different conventions
just like 'real life'.

I will say that you first comment is *DEAD WRONG* (I thought news groups
were for asking questions...) news groups - at least most of the technical
news groups *I* inhabit - are for discussion. One *can* get help but these
are *NOT* your own private help desk. I've asked come really dumb
questions and gotten some really helpful information - and sometimes the
two even seemed to be related ... that said, take a chill pill, take a
look at what you're trying to do and see if maybe Jukkas response wasn't
what you needed.

On the topic of superiors asking you to do something - if it's
counterproductive are you really going to stand back and let them pressure
you into doing it (I know, it's a paycheck) when it would be in their
better interests to try to educate them as to *why* this isn't the best
idea....

--
//al

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация