468,140 Members | 1,437 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,140 developers. It's quick & easy.

how to change a "file" - Browse button's name to something else.

Hi,

I want to change the name of Browse to Add...
How can I modify the followoing html code?

<form name="iform" action="" method="post" enctype="multipart/form-data">

<input id="file" type="file" name="image" onchange="upload()" />
<input type="hidden" name="imgnum" />

</form>

Thanks
Sam
Mar 21 '06 #1
4 8939
Tim
On Mon, 20 Mar 2006 22:28:12 +1100, acord sent:
I want to change the name of Browse to Add... How can I modify the
followoing html code?


It doesn't "add" a file to the upload gadget, though. If you picked one
file, then tried to "add" another, you'd replace the previously picked one.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please destroy some files yourself.

Mar 21 '06 #2
In article <44********@news.rivernet.com.au>,
acord <ac***@telpacific.com.au> wrote:
I want to change the name of Browse to Add...
How can I modify the followoing html code?


For security reasons, you can't.

--
Henri Sivonen
hs******@iki.fi
http://hsivonen.iki.fi/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Mar 21 '06 #3
acord wrote:
Hi,

I want to change the name of Browse to Add...
You can't. The fact that the file input interface includes button
labeled "Browse" is a result of the way your browser is programmed. It's
an implementation detail beyond the reach of your code.
How can I modify the followoing html code?

<form name="iform" action="" method="post" enctype="multipart/form-data">

<input id="file" type="file" name="image" onchange="upload()" />
<input type="hidden" name="imgnum" />

</form>

Mar 21 '06 #4
Harlan Messinger wrote:
I want to change the name of Browse to Add...


You can't. The fact that the file input interface includes button
labeled "Browse" is a result of the way your browser is programmed. It's
an implementation detail beyond the reach of your code.


It also depends on the language of the browser (the language of the user
interface, as in menus, error messages, etc.).
How can I modify the followoing html code?

<form name="iform" action="" method="post" enctype="multipart/form-data">

<input id="file" type="file" name="image" onchange="upload()" />
<input type="hidden" name="imgnum" />

</form>


What the code really calls for is a real (nonempty) value for the action
attribute and an <input type="submit"> button. Without them, the form
cannot be used at all, unless the user is willing to use a browser with
client-side scripting enabled.

The hidden field is pointless, since it has no value and cannot thus be
a "successful control". If the idea is to populate it with a value via
scripting, a better idea is needed.
Mar 21 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Pai | last post: by
1 post views Thread by Ron Brennan | last post: by
2 posts views Thread by IkBenHet | last post: by
4 posts views Thread by sakurasyi | last post: by
7 posts views Thread by Tim Slattery | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.