472,958 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 9198
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.