473,395 Members | 1,584 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,395 software developers and data experts.

.click(); problems on FF

43
here is my script

[HTML]<input type="button" value="file" onclick="document.getElementById('file').click()">
<input type="file" style="display:none" id="file" onchange="alert(this.value)"> [/HTML]

and this i my problem
this script works on IE but it don't works on FF can anyone tell me how to make it work on FF too?
Sep 29 '07 #1
4 1286
gits
5,390 Expert Mod 4TB
hi ...

could you please explain what you want to achieve with that? you click on a button and you want to call the click event of a file-type input box? ... why not using its own button?

kind regards
Sep 29 '07 #2
phvfl
173 Expert 100+
Hi,

A file input element does not have a click function according to web standards, there is no problem with Firefox, IE is executing invalid javascript. If you are trying to focus on the file input use the .focus() function instead, if you are trying to select it use the .select() function.

A reference for the file intput pbject can be seen on w3schools here
Sep 29 '07 #3
tader
43
am not using the file button because it seas browse... i need the other word in it! and none of these aren't working for me focus(), select() maybe i don't know how to them right can you write me how to do it?
Sep 29 '07 #4
acoder
16,027 Expert Mod 8TB
Maybe you could try styling the element as shown here.
Sep 29 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: John | last post by:
Could anyone please help me on this?? I have a php script page, which is basically quiz. Visitors (after login in with their email address) are supposed to answer each question, and when they...
21
by: Dan V. | last post by:
I have tried a number of things including preloading, but the background image (water tile in header) in IE 6 will not display where other browsers will....
6
by: laredotornado | last post by:
Hello, We have built a web page and on IE 6.0, Win XP, when we click on graphics, a mysterious little dotted box appears around the graphic. We're pretty sure this is nothing we've programmed in. ...
0
by: Anina | last post by:
It looks like the button control captures all of the clicks on the button no matter if the program is busy accessing code. For example: if the click event of a button has code that takes 10 seconds...
6
by: Michael Johnson Jr. | last post by:
I am trying to handle a button click event, which updates a web control table with data. The button is dynamically created in the table itself. When I call updateTable() in the Page_Load the new...
5
by: Cal | last post by:
I have textboxarray txtRatio and the following routine to handle the click events. Private Sub txtRatio_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles...
2
by: scott_gui | last post by:
I am creating a Windows application: The mouse event <Double-Button-1> has a conflict when the <Button-1> event also has a binding. Double clicks will first perform the single click action. This...
2
by: CR | last post by:
I am working on the deployment portion of my first click once app. It was created using VS 2003, with an installer, but has been upgraded to VS 2005, and I would like to use click once. I tested...
4
by: LyzH | last post by:
Someone else had a question on how to emulate a mouse click. I tried posting in that thread but I have something of a twist on this problem and I'm really in trouble here! If I don't get help...
2
by: willat8 | last post by:
Hi. I'm having some problems with the execution of a javascript function trigged by clicking on a div. This only occurs if I have not clicked anywhere on the page since load: if it is the first...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.