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 November 17th, 2000, 02:57 AM
anita20 anita20 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 1 anita20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi!!

I know how to use forms , but I want to show information about something (from the tables) and want to use a checkbox to show if the value is 1 or 0.
U can click the checkbox on and off .. I want the user not to be able to turn it on or of ...

Can u give me the help??

thankzz Anita

Reply With Quote
  #2  
Old November 17th, 2000, 09:35 AM
dorward's Avatar
dorward dorward is offline
Coder
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 23 dorward User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by anita20:
Hi!!

U can click the checkbox on and off .. I want the user not to be able to turn it on or of ...
[/quote]

It depends what method you are using to determine if the box is on or off. If it needs to be done while the page is loaded then I don't think it is possible, if it should be done while the page is load[B]ing[B] (with a server side script) then you can skip the form elements and just put in graphics of the checked and unchecked boxes.


Reply With Quote
  #3  
Old November 25th, 2000, 06:39 AM
meera meera is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 2 meera User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i think u could do this, depending on the value from the database, you could set the check box to 1 or 0 n then disable it, i think this should work out..

meera


Reply With Quote
  #4  
Old November 27th, 2000, 06:40 AM
RedFox RedFox is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 45 RedFox User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Try this, if you don't want the checkbox to be checked:

<input type=checkbox onclick="this.checked=false;">

replace false by true, if you want to keep it selected. haven't tested it, so it might need modifications.

Reply With Quote
  #5  
Old November 30th, 2000, 11:54 AM
FieroEtnl FieroEtnl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Omaha
Posts: 5 FieroEtnl 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 FieroEtnl Send a message via AIM to FieroEtnl
I don't know of a method using HTML to disable the ability to turn a checkbox on or off. If you use Javascript you can force the browser to read the checkbox's value as true no matter what though.

Michael

Reply With Quote
  #6  
Old December 1st, 2000, 01:26 AM
JHS JHS is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 2 JHS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You can use the "DISABLED" and "READONLY" attributes in INPUT tags to prevent the user from changing the element's value.
By using either attribute, the element and it's value is visible on the page. By specifying "READONLY", the element remains in the tab-order of the page and a name/pair for the element is submitted with the rest of the form data. The "DISABLED" attrbitue removes the element from the page's tab-order, an prevents a name value pair from being submitted with the rest of the form.

Reply With Quote
  #7  
Old December 4th, 2000, 08:30 PM
rtaylor
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
How is DISABLED coded?

It doesn't work for me.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > form --> checkbox!!


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



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT