Click here to Skip to main content
15,915,019 members
Home / Discussions / Web Development
   

Web Development

 
QuestionDisplay thumbnail images in a multiple rows Pin
arpita200625-May-06 8:33
arpita200625-May-06 8:33 
QuestionShared Assembly Deployment and version management Pin
Leftyfarrell25-May-06 7:56
Leftyfarrell25-May-06 7:56 
Questionhow to control applet without click on it? [modified] Pin
newlifehejian25-May-06 1:44
newlifehejian25-May-06 1:44 
QuestionHelp in HTML Required, opening word file. [modified] Pin
deepaks324-May-06 20:04
deepaks324-May-06 20:04 
AnswerRe: Help in HTML Required, opening word file. [modified] Pin
ranandbe25-May-06 2:12
ranandbe25-May-06 2:12 
GeneralRe: Help in HTML Required, opening word file. [modified] Pin
deepaks325-May-06 7:42
deepaks325-May-06 7:42 
Questionxml asp problem??? [modified] Pin
Small Rat24-May-06 17:09
Small Rat24-May-06 17:09 
QuestionHow to set a checkbox in a table dynamically... Pin
Jesse Evans24-May-06 12:31
Jesse Evans24-May-06 12:31 
Hi, folks!

I'm building a table of data, retrieved from a database. One of the fields is boolean and I want to set/unset a checkbox in my table depending upon the value in the data table (which is of type bit).

Here's what I have so far...
      <br />
oCell = oRow.insertCell();<br />
oCell.align = "center";<br />
oCell.style.fontSize = "12";<br />
oCell.style.fontWeight = "normal";<br />
oCell.style.border = "thin black solid";<br />
sTag = "<INPUT type='checkbox' id='cb" + i++ + "'>";<br />
aElement = document.createElement (sTag);<br />
aElement.checked = Rs("AllowEmail");<br />
oCell.appendChild(aElement);<br />

but this does not work. I get the checkboxes ok, but I can't set them, even if I explicitly say aElement.checked = true; So, how do I access the checked property?

TIA!!

'til next we type...
HAVE FUN!! -- Jesse
AnswerRe: How to set a checkbox in a table dynamically... Pin
Steve Echols24-May-06 19:00
Steve Echols24-May-06 19:00 
GeneralRe: How to set a checkbox in a table dynamically... Pin
Jesse Evans25-May-06 6:18
Jesse Evans25-May-06 6:18 
Questionhow Browser works Pin
Chandan_Kr23-May-06 23:29
Chandan_Kr23-May-06 23:29 
AnswerRe: how Browser works Pin
J4amieC24-May-06 1:01
J4amieC24-May-06 1:01 
AnswerRe: how Browser works Pin
RichardGrimmer26-May-06 3:15
RichardGrimmer26-May-06 3:15 
QuestionAdd Collection Property editor in custom control? Pin
Irfan.x23-May-06 23:05
Irfan.x23-May-06 23:05 
QuestionI need an algorithm writed by Javascript to compress big text. Pin
simonchen.net23-May-06 20:20
simonchen.net23-May-06 20:20 
AnswerRe: I need an algorithm writed by Javascript to compress big text. Pin
alex.barylski25-May-06 13:54
alex.barylski25-May-06 13:54 
QuestionPrinting using javascrip Pin
deepaks323-May-06 19:19
deepaks323-May-06 19:19 
AnswerRe: Printing using javascrip Pin
arpita200626-May-06 4:54
arpita200626-May-06 4:54 
QuestionRun a Exe File in Struts Pin
k.n.ruban23-May-06 18:24
k.n.ruban23-May-06 18:24 
QuestionHTML in in Lotus notes Pin
Gktony23-May-06 4:52
Gktony23-May-06 4:52 
AnswerRe: HTML in in Lotus notes Pin
KrIstOfK23-May-06 20:59
KrIstOfK23-May-06 20:59 
GeneralRe: HTML in in Lotus notes Pin
Gktony23-May-06 22:14
Gktony23-May-06 22:14 
QuestionDelete image in asp.net Pin
hi_arv23-May-06 1:13
hi_arv23-May-06 1:13 
Questionhow to split ......? Pin
jayan meledom23-May-06 1:02
jayan meledom23-May-06 1:02 
AnswerRe: how to split ......? Pin
sathish s23-May-06 2:20
sathish s23-May-06 2:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.