473,320 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Using a graphic instead of the "Browse" button

Hello,

Is it possible, instead of having the button "Browse" for the HTML
<input type="file"> element, to have a graphic in its place? How would
this be done?

Thanks, - Dave

Nov 8 '05 #1
11 3503
la***********@zipmail.com wrote:
Is it possible, instead of having the button "Browse" for the HTML
<input type="file"> element, to have a graphic in its place?


No... at least not consistently and not in a way which would not render the
button entirely unusable by some users.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Nov 8 '05 #2
laredotornado wrote:
How would this be done?


Can't.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Nov 8 '05 #3
You might not be able to...

But for submit button you can do like this.

<BUTTON name="submit" value="submit" type="submit">
Any Text If Need <IMG src="ie.gif" alt="wow">
</BUTTON>

Check in www.w3c.org and you might find a way......

/Cheers,
-MadGuy

Nov 8 '05 #4
Ah... for some it's working it seems.. check this page out.. you'll
survive...

http://www.w3.org/TR/html4/interact/...tml#edef-INPUT

/Cheers,
-MadGuy

Nov 8 '05 #5
Madguy wrote:
You might not be able to...
You can't.
But for submit button you can do like this.
Why would that be the least relevant to the question that was asked?

But if it's relevant to _you_, you should know that all attempts to
replace a normal submit button by some graphic are more or less
problematic. You seem to have chosen something in the "more" category:
<BUTTON name="submit" value="submit" type="submit">
Any Text If Need <IMG src="ie.gif" alt="wow">
</BUTTON>
The <button> element is _incorrectly_ implemented in Internet Explorer.
This alone is a good reason to avoid it. Some browsers do not implement
<button> at all.
Check in www.w3c.org and you might find a way......


They don't warn about flaws in implementations very much.
Nov 8 '05 #6

Jukka K. Korpela wrote:
But if it's relevant to _you_, you should know that all attempts to
replace a normal submit button by some graphic are more or less
problematic. You seem to have chosen something in the "more" category:


Initial problem is about possibility..
<BUTTON name="submit" value="submit" type="submit">
Any Text If Need <IMG src="ie.gif" alt="wow">
</BUTTON>


The <button> element is _incorrectly_ implemented in Internet Explorer.
This alone is a good reason to avoid it. Some browsers do not implement
<button> at all.


As long as question is about possibily of doing that, my answer should
be correct. .where as your reply focus on compatibility and browser
implementatiions. well... for that you could use JavaScript and get the
browser version and make some alternative depending on the browser..

/Cheers,

-MadGuy

Nov 8 '05 #7
Madguy wrote:
As long as question is about possibily of doing that,
It wasn't, as I explained.

You _still_ haven't apparently read the question, which was clearly
formulated and which is well reflected on the Subject line.
my answer should be correct.
It wouldn't be, even if the question had been what you seem to think.
where as your reply focus on compatibility and browser
implementatiions. well... for that you could use JavaScript and get the
browser version and make some alternative depending on the browser..


You seem to aim at creating problems with pseudo-solutions to problems
that you try to create in answering question that were not asked.
Nov 8 '05 #8
i'm sorry.. but still i dont see anything relative to what you say and
any thing mis-mathching to what i said, in the original message. this
may be either your or mine perceptual error.

/Cheers,
-MadGuy

Nov 8 '05 #9
Madguy wrote:
well... for that you could use JavaScript and get the
browser version


Not in my browser, you won't.

--
-bts
-Warning: I brake for lawn deer
Nov 8 '05 #10
>Not in my browser, you won't.

For that also you could give a condition.. (to trace the browsers which
dont support that)....

:D

/Cheers,
-MadGuy

Nov 9 '05 #11
David Dorward wrote in message news:dk*******************@news.demon.co.uk...
laredotornado at zipmail.com wrote:
Is it possible, instead of having the button "Browse" for the HTML
<input type="file"> element, to have a graphic in its place?


No... at least not consistently and not in a way which would not render the
button entirely unusable by some users.


http://www.quirksmode.org/dom/inputfile.html
it uses Javascript, although if someone has javascript disabled,
it only would look somewhat awkward.

Just remember, it's a quirk
Nov 9 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Fred | last post by:
Hi I am searching for a module, that would allow me to call files by using a 'browse' button. Is there any uniform module for browsing files, or is there a special module for *.txt files? Thanks...
3
by: Olivier Verdin | last post by:
Hi, I am developing a multi-language application in ASP.NET in c#. I am using a file field html control to upload an image. I would like to change the text on the button "browse" that comes...
2
by: Roger S | last post by:
Hi! I am trying to add a Browse-button to a database, and I believe an ActiveX-control is the way to go (correct me if I'm wrong). Get an error that says something like "You don't have the...
9
by: Prakash Singh Bhakuni | last post by:
am replacing the default "Browse..." button for input type=file. This works fine except that the form will only submit after the SUBMIT button is clicked twice. Any ideas on why this is happening...
0
by: sreenulanka | last post by:
when i am clicking the browse button image not opened in my applet please help me. // browse button, generate browse event when it clicks if (e.getSource()==browse) { ...
9
by: Roger Withnell | last post by:
I am building a website in Russian. What options do I have to make the "Browse" button display in other languages? Thanking you in anticipation. Posted Via Usenet.com Premium Usenet...
1
by: aby004 | last post by:
Hello Sir, I want to know that how to create a "Browse" button to upload file to server ? i have already creating a attachfile button and applying a script, but there is no respone when...
1
by: daithi | last post by:
Hi This is a bit of mismatch but its more geared to the Java developer. I'm storing the file path from a browse button in Javascript but instead of locating a file I need it to locate a folder. Can...
6
by: skyy | last post by:
Hi.. i am doing file upload using CGI perl scripts... I want to allow the user to select the files using the "Browse" button only instead of typing the path name. How i do it? Thanks.....
1
by: balakrishnan.dinesh | last post by:
Hi frndz , I want to assgin value to <input type=file, without clicking browse button , And i know that it is readonly , But how it is possible in Firfox browsers ?.. Is there any...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.