| View previous topic :: View next topic |
| Author |
Message |
arupranjans
Joined: 11 Mar 2008 Posts: 6
|
Posted: Tue Mar 11, 2008 8:39 am Post subject: 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 |
|
| Back to top |
|
 |
|
|
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 627 Location: Cebu City Philippines
|
Posted: Tue Mar 11, 2008 8:48 am Post subject: Re: Disable Input Type File in Mac Safari |
|
|
See on which of which would work as I don't have safari for test
| Code: |
<form>
<input type="file" name="oFile" onchange="" disabled/>
</form>
|
..or
| Code: |
<form>
<input type="file" name="oFile" onchange="" disabled = "true" />
</form>
|
See if it helps  |
|
| Back to top |
|
 |
arupranjans
Joined: 11 Mar 2008 Posts: 6
|
Posted: Tue Mar 11, 2008 8:57 am Post subject: Re: Disable Input Type File in Mac Safari |
|
|
Hi rangana,
Thanks for the quick reply.
But both of the specified code is not working, that it is not disabling the Input Type File Element in Mac Safari.
Is there any work around??
Thanks & Regards,
Arup. |
|
| Back to top |
|
 |
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 627 Location: Cebu City Philippines
|
Posted: Tue Mar 11, 2008 9:13 am Post subject: Re: Disable Input Type File in Mac Safari |
|
|
See the bug within a bug
I was able to view the input button as a disabled one, is it enabled in safari?  |
|
| Back to top |
|
 |
arupranjans
Joined: 11 Mar 2008 Posts: 6
|
Posted: Tue Mar 11, 2008 9:34 am Post subject: Re: Disable Input Type File in Mac Safari |
|
|
| rangana wrote: |
See the bug within a bug
I was able to view the input button as a disabled one, is it enabled in safari?  |
Yes, It is Disabled. But I was talking about the Input Type File Element.
Here, it is submit Button.
I was talking about <input type="file" />
It is not getting disabled in Safari Mac.
Thanks & Regards,
Arup.
Last edited by arupranjans on Tue Mar 11, 2008 9:39 am; edited 1 time in total |
|
| Back to top |
|
 |
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 627 Location: Cebu City Philippines
|
Posted: Tue Mar 11, 2008 9:38 am Post subject: Re: Disable Input Type File in Mac Safari |
|
|
It's just this one:
| Code: |
<input type="submit" value="Submit" disabled style='cursor: default'><br>
<input type='text' value='Text Text' disabled style='cursor: default'>
|
See if it helps  |
|
| Back to top |
|
 |
arupranjans
Joined: 11 Mar 2008 Posts: 6
|
Posted: Tue Mar 11, 2008 9:40 am Post subject: Re: Disable Input Type File in Mac Safari |
|
|
| rangana wrote: |
It's just this one:
| Code: |
<input type="submit" value="Submit" disabled style='cursor: default'><br>
<input type='text' value='Text Text' disabled style='cursor: default'>
|
See if it helps  |
Yes, It is Disabled. But I was talking about the Input Type File Element.
Here, it is submit Button.
I was talking about <input type="file" />
It is not getting disabled in Safari Mac.
Thanks & Regards,
Arup. |
|
| Back to top |
|
 |
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 627 Location: Cebu City Philippines
|
Posted: Tue Mar 11, 2008 9:48 am Post subject: Re: Disable Input Type File in Mac Safari |
|
|
You tried changing the input type="submit" to input type="file" and it's not working??.. |
|
| Back to top |
|
 |
arupranjans
Joined: 11 Mar 2008 Posts: 6
|
Posted: Tue Mar 11, 2008 10:04 am Post subject: Re: Disable Input Type File in Mac Safari |
|
|
| rangana wrote: |
You tried changing the input type="submit" to input type="file" and it's not working??.. |
Yes, I have changed and tested, but Not working...
Can't we disable File Input Element in Safari Mac?
If Not, Is there any work around?
Thanks & Regards,
Arup. |
|
| Back to top |
|
 |
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 627 Location: Cebu City Philippines
|
Posted: Tue Mar 11, 2008 10:46 am Post subject: Re: Disable Input Type File in Mac Safari |
|
|
Arup,
Honestly, I reached my wits end finding work-around for this problem. Maybe some other member might able to help you.
I can't think of a good crack for this one.
My apologies  |
|
| Back to top |
|
 |
|