 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
arupranjans
Joined: 10 Mar 2008 Posts: 2
|
Posted: Mon Mar 10, 2008 3:04 am Disable Input Type File in Mac Safari |
|
|
|
Hi all,
How can I disable a Input Type File Element in Mac Safari?
I have written the below code & tested in Safari, Mac.
| Code: |
<form>
<input type="file" name="oFile" onchange="" disabled = "disabled" />
</form>
|
But It is NOT working, Still I am able to select file by clicking "Choose File" Button.
Can anyone please help me out?
Thanks & Regards,
Arup |
|
kanenas

Joined: 14 Dec 2004 Posts: 191
|
Posted: Tue Mar 18, 2008 2:12 am Leav off '="disabled"' |
|
|
|
What version of Safari are you using? The sample works for me with 3.0.4.
BTW, don't put spaces between the attribute name, value and '='. With boolean attributes, you can leave off the value and just use the name. |
|
arupranjans
Joined: 10 Mar 2008 Posts: 2
|
Posted: Tue Mar 18, 2008 2:20 am |
|
|
|
This works fine for 3.0.4, but this issue is reproducible in Safari 2.0.4 in Mac OSX.
Thanks,
Arup |
|
kanenas

Joined: 14 Dec 2004 Posts: 191
|
Posted: Wed Mar 19, 2008 1:28 pm Do you want to support Safari 2? |
|
|
|
| Do you need to support Safari 2, or can you consider the issue resolved? You could try setting a 'click' event handler when disabling the button under v2. I don't have access to 2.0.X, so probably can't help you much. |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|