Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Disable Input Type File in Mac Safari



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> HTML Forum
View previous topic :: View next topic  
Author Message
arupranjans



Joined: 11 Mar 2008
Posts: 6

PostPosted: Tue Mar 11, 2008 8:39 am    Post subject: Disable Input Type File in Mac Safari Reply with quote

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
View user's profile Send private message
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 614
Location: Cebu City Philippines

PostPosted: Tue Mar 11, 2008 8:48 am    Post subject: Re: Disable Input Type File in Mac Safari Reply with quote

See on which of which would work as I don't have safari for test Sad
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 Wink
Back to top
View user's profile Send private message Yahoo Messenger
arupranjans



Joined: 11 Mar 2008
Posts: 6

PostPosted: Tue Mar 11, 2008 8:57 am    Post subject: Re: Disable Input Type File in Mac Safari Reply with quote

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
View user's profile Send private message
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 614
Location: Cebu City Philippines

PostPosted: Tue Mar 11, 2008 9:13 am    Post subject: Re: Disable Input Type File in Mac Safari Reply with quote

See the bug within a bug

I was able to view the input button as a disabled one, is it enabled in safari? Smile
Back to top
View user's profile Send private message Yahoo Messenger
arupranjans



Joined: 11 Mar 2008
Posts: 6

PostPosted: Tue Mar 11, 2008 9:34 am    Post subject: Re: Disable Input Type File in Mac Safari Reply with quote

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? Smile


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
View user's profile Send private message
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 614
Location: Cebu City Philippines

PostPosted: Tue Mar 11, 2008 9:38 am    Post subject: Re: Disable Input Type File in Mac Safari Reply with quote

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 Wink
Back to top
View user's profile Send private message Yahoo Messenger
arupranjans



Joined: 11 Mar 2008
Posts: 6

PostPosted: Tue Mar 11, 2008 9:40 am    Post subject: Re: Disable Input Type File in Mac Safari Reply with quote

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 Wink


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
View user's profile Send private message
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 614
Location: Cebu City Philippines

PostPosted: Tue Mar 11, 2008 9:48 am    Post subject: Re: Disable Input Type File in Mac Safari Reply with quote

You tried changing the input type="submit" to input type="file" and it's not working??..Rolling Eyes
Back to top
View user's profile Send private message Yahoo Messenger
arupranjans



Joined: 11 Mar 2008
Posts: 6

PostPosted: Tue Mar 11, 2008 10:04 am    Post subject: Re: Disable Input Type File in Mac Safari Reply with quote

rangana wrote:
You tried changing the input type="submit" to input type="file" and it's not working??..Rolling Eyes


Yes, I have changed and tested, but Not working... Crying or Very sad

Can't we disable File Input Element in Safari Mac?

If Not, Is there any work around?

Thanks & Regards,
Arup.
Back to top
View user's profile Send private message
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 614
Location: Cebu City Philippines

PostPosted: Tue Mar 11, 2008 10:46 am    Post subject: Re: Disable Input Type File in Mac Safari Reply with quote

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 Sad
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> HTML Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap