Preserved Topic: "Browse..."- Can it be an image? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Deeetroit, MI. USA |
posted 06-11-2003 21:50
I was wondering if anyone knew how I could make the standard "Browse..." button an image. It's not entirely necessary, but I thought I'd ask anywho... |
Maniac (V) Inmate From: Brisbane, Australia |
posted 06-12-2003 02:00
|
Paranoid (IV) Inmate From: Deeetroit, MI. USA |
posted 06-12-2003 02:58
Sorry Drac, lemme specify. The "Browse..." button in an HTML form that is used as input for file uploads. I was wondering if instead of the typical browser button, one could use an image instead... |
Bipolar (III) Inmate From: övik |
posted 06-12-2003 03:05
Hide the input/file tag by placing it "top:-300", and set it's id to 'myfile'. |
Paranoid (IV) Inmate From: Deeetroit, MI. USA |
posted 06-12-2003 20:45
amikael, |
Paranoid (IV) Inmate From: France |
posted 06-13-2003 00:08
amikael: Your idea is interesting. In an attempt to illustrate your point to Thumper, I decided to go for a more stable way to hide the file field. code: <html> Unfortunately, the click() seems to have no effect neither in Mozilla 1.3 nor Netscape 4.8. More, NN4.8 can't find the file field if it's hidden via display:none |
Paranoid (IV) Inmate From: Deeetroit, MI. USA |
posted 06-14-2003 00:58
Thank you POI. This will be for an administration tool, so browser version doesn't matter that much. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 06-14-2003 01:07
The onClick issue should be easily solved by surrounding the image with a null href |
Paranoid (IV) Inmate From: France |
posted 06-14-2003 16:18
bitdamaged: I wasn't talking about that very onClick event, anyway that's a good thing to remind this NN4 work around to the beginning inmates. Actually, I was mentionning this line: code: fieldHandle.click() I tested different methods to hide the file field ( and even checked to let it visible ) in MZ1.3 and the browser doesn't interpret the line above by throwing an onClick event on the fieldHandle object. |
Maniac (V) Inmate From: there...no..there..... |
posted 06-16-2003 04:43
am I just not understanding the question? Why now just use a standard input with the type being image: |
Bipolar (III) Inmate From: Amsterdam |
posted 06-16-2003 12:20
Poi, |
Paranoid (IV) Inmate From: France |
posted 06-16-2003 14:07
Nevel: Indeed, NN4.8 behavior might sound correct. I don't have the standards in mind but since Mozilla CAN find an element hidden via display:none , then I consider that NN4.8 is buggy on that point |
Maniac (V) Inmate From: there...no..there..... |
posted 06-16-2003 16:32
poi: yes but he said: quote:
|