Click here to Skip to main content
15,901,122 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: IT professionals Pin
leckey5-Jun-08 17:50
leckey5-Jun-08 17:50 
GeneralRe: IT professionals Pin
Paul Conrad28-Jun-08 8:49
professionalPaul Conrad28-Jun-08 8:49 
GeneralRe: IT professionals Pin
Christian Graus28-Jun-08 12:25
protectorChristian Graus28-Jun-08 12:25 
GeneralRe: IT professionals Pin
Paul Conrad28-Jun-08 12:33
professionalPaul Conrad28-Jun-08 12:33 
AnswerRe: IT professionals Pin
Vasudevan Deepak Kumar6-Jun-08 2:28
Vasudevan Deepak Kumar6-Jun-08 2:28 
GeneralRe: IT professionals Pin
Ashfield6-Jun-08 5:00
Ashfield6-Jun-08 5:00 
QuestionSubreportProcessing event handler of ReportViewer control not firing.. Please help Pin
Jagadeeshs5-Jun-08 4:28
Jagadeeshs5-Jun-08 4:28 
QuestionAttaching event lisener with arguments. Pin
24891284-Jun-08 21:18
24891284-Jun-08 21:18 
Hi All!

I've following table in my web page:

<table id="tblTest"><br />
            <tr><br />
                <td><br />
                    dfdf</td><br />
                <td><br />
                    dfdf</td><br />
            </tr><br />
            <tr><br />
                <td><br />
                    sfds</td><br />
                <td><br />
                    fdsf</td><br />
            </tr><br />
        </table>

i've put following javascript code in script tag:

 window.onload = function()<br />
 {<br />
 var Trs = document.getElementById('tblTest').children[0].children;<br />
        for(var n=0; n<Trs.length; ++n)<br />
            if(document.addEventListener)<br />
                Trs[n].addEventListener('click', function(){ Information(Trs[n], Trs[n].children.length); }, false );<br />
            else if(document.attachEvent)<br />
                Trs[n].attachEvent('onclick', function(){ Information(Trs[n], Trs[n].children.length); } );<br />
}


function Information(tr, trCount)<br />
   {<br />
        alert(tr.nodeName);<br />
        alert(trCount);<br />
   }

but on clicking on any row following javascript error raised:

Microsoft jScript runtime error: 'Trs[...].children' is null or not an object

can any body tell me where i have made mistake?
QuestionHow to parse a value from HTML? Pin
hifiger20044-Jun-08 18:59
hifiger20044-Jun-08 18:59 
AnswerRe: How to parse a value from HTML? Pin
Vasudevan Deepak Kumar4-Jun-08 20:19
Vasudevan Deepak Kumar4-Jun-08 20:19 
AnswerRe: How to parse a value from HTML? Pin
Ashfield4-Jun-08 21:26
Ashfield4-Jun-08 21:26 
GeneralRe: How to parse a value from HTML? Pin
hifiger20044-Jun-08 23:46
hifiger20044-Jun-08 23:46 
GeneralRe: How to parse a value from HTML? Pin
Ashfield5-Jun-08 0:23
Ashfield5-Jun-08 0:23 
QuestionContinue timer from the place it stopped in JavaScript Pin
TheAteist4-Jun-08 9:06
TheAteist4-Jun-08 9:06 
AnswerRe: Continue timer from the place it stopped in JavaScript Pin
Vasudevan Deepak Kumar4-Jun-08 20:21
Vasudevan Deepak Kumar4-Jun-08 20:21 
QuestionSession value is mixed with other user's session Pin
metbinu2003@yahoo.com4-Jun-08 4:12
metbinu2003@yahoo.com4-Jun-08 4:12 
AnswerRe: Session value is mixed with other user's session Pin
Herman<T>.Instance8-Jun-08 22:23
Herman<T>.Instance8-Jun-08 22:23 
Questionhow to Convert Text into Image in javascript? Pin
Member 31551514-Jun-08 0:44
Member 31551514-Jun-08 0:44 
AnswerRe: how to Convert Text into Image in javascript? Pin
Christian Graus4-Jun-08 4:50
protectorChristian Graus4-Jun-08 4:50 
AnswerRe: how to Convert Text into Image in javascript? Pin
ayaxian5-Jun-08 13:26
ayaxian5-Jun-08 13:26 
QuestionStoring string variable with double quote Pin
hifiger20044-Jun-08 0:07
hifiger20044-Jun-08 0:07 
AnswerRe: Storing string variable with double quote Pin
Christian Graus4-Jun-08 4:51
protectorChristian Graus4-Jun-08 4:51 
QuestionC# web appliaction to PDF using iTextSharp Pin
Dhilipkumar3-Jun-08 22:47
Dhilipkumar3-Jun-08 22:47 
AnswerRe: C# web appliaction to PDF using iTextSharp Pin
Christian Graus4-Jun-08 4:52
protectorChristian Graus4-Jun-08 4:52 
QuestionRedirect to next page. Pin
Moghan3-Jun-08 22:35
Moghan3-Jun-08 22:35 

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.