SunQuest
           HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 8th, 2000, 04:38 PM
Raja Chandrasekaran Raja Chandrasekaran is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Chennai,TamilNadu,India
Posts: 2 Raja Chandrasekaran User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Can i disable a text box, which works in both IE and NN. But my reqd is that even cut,copy and paste should not work. If you see properly even in IE when we make the text control disabled we cut the content.

Thanks
Raja

Reply With Quote
  #2  
Old August 10th, 2000, 11:56 AM
pornpoj pornpoj is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 2 pornpoj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
try to see http://www.experts-exchange.com/bin/BuyPAQ?qid=10154550

Reply With Quote
  #3  
Old August 10th, 2000, 02:23 PM
bruce bruce is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Trinidad and Tobago
Posts: 7 bruce User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to bruce
formname.elementname.disabled=true (disable)
formname.elementname.disabled=false (enable)


Reply With Quote
  #4  
Old August 10th, 2000, 06:13 PM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 2 m 4 sec
Reputation Power: 43
Netscape 4.x does not recognize the 'disabled' property. For Netscape, use onfocus="this.blur()" and even onkeypress="this.blur()" inside the text element tag. In IE, people can get around this by tabbing into the control, so you should also add 'disabled' in the tag.

Even so, in Netscape with the right context menu, you can still mess around with it some.

Ironically, IE, even though having the 'disabled' property, still doesn't completely disable the control. Thus for both browsers, you need to also include a function that is called by the onChange event, which restores the control back to its original value whenever anyone messes with it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Disable Text Box


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway