Click here to Skip to main content
15,910,009 members
Home / Discussions / Web Development
   

Web Development

 
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 
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 
Steve Echols wrote:
but.....have you tried


Hey, that works if you put ==true in the if statement! Thanks a bunch!

I'm still not sure why my method fails; maybe the input element does not yet exist until it's appended to the cell.

Just tried an experiment and the conjecture in the previous paragraph is correct!

This properly checks the boxes:
<br />
sTag = "<INPUT type='checkbox' id='cb" + i++ + "'>";<br />
aElement = document.createElement (sTag);<br />
oCell.appendChild(aElement);<br />
if (Rs("AllowEmail") == true) aElement.checked = true;<br />

But this does not:
<br />
sTag = "<INPUT type='checkbox' id='cb" + i++ + "'>";<br />
aElement = document.createElement (sTag);<br />
if (Rs("AllowEmail") == true) aElement.checked = true;<br />
oCell.appendChild(aElement);<br />

So, problem solved and I've learned something new. Once again, my thanks to the gurus of CodeProject.


'til next we type...
HAVE FUN!! -- Jesse
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 
Questionjava script urgently..... Pin
adarsh70722-May-06 20:03
adarsh70722-May-06 20:03 
AnswerRe: java script urgently..... Pin
KrIstOfK22-May-06 21:28
KrIstOfK22-May-06 21:28 

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.