473,405 Members | 2,354 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,405 software developers and data experts.

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 9226
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Pai | last post by:
Hello there, Good Morning, I am facing a peculiar problem. I have the following code in the html section of my .apsx page <input type="file" runat="server" id="fileBrowse"...
1
by: Ron Brennan | last post by:
I've spent all morning on this and now think there is a (slight?) possiblity that onchange doesn't work for input type="file". Can anybody shed any light on this. The onblur fires just fine. The...
2
by: Matt | last post by:
If I do the following, the browse text box still cannot see C:/hello world/test.txt. <input type="file" name="fileName" value="C:/hello world/test.txt" size=80> Any ideas? and workarounds...
2
by: HVG | last post by:
Hi, does anyone know why using ".click()" on a <INPUT type="file"> control should be a problem? - the html file selction control is on a very plain webform page with just the <input type="file">...
2
by: IkBenHet | last post by:
Hello, I am uploading a file using this form in ASP.NET. I have also added a simpel textfield: <form runat="server" enctype="multipart/form-data"> <input type="file" id="oFile" Name="oFile"...
4
by: sakurasyi | last post by:
hai everyone... can i need your help? recently i'm doing a program for upload image or file.. i've attmpted to post the location or path to the page then input it into the form using <input type...
1
by: nad2zen | last post by:
Hi All, How to set the path value to file object using javascript. now i am trying to upload the file without using browse button, but i could not set the path value.. see my code: <form...
7
by: Tim Slattery | last post by:
I'm trying to handle the onChange event in an <input type="file"> element. In IE, there's no problem: the event fires when a file in the "open" box is doubleclicked, or the "Open" button in the box...
1
by: sandeep kumar shah | last post by:
Hi, We have used a file uploading HTML tag in an HTML page. We need to customize the text displayed on the Button (which is by default “Browse…” for internet explorer). Below is the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.