Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Adding dynamic rows in Mozilla

    Hi Techies ,

    For adding dynamic rows, I am using like this.

    var index = new Array ( "A" , "B" , "C" , "D" , "E" , "F" , "G" , "H" , "I" , "J" , "K" , "L" , "M" , "N" , "O" , "P" , "Q" , "R" , "S" , "T" , "U" , "V" , "W" , "X" , "Y" , "Z" ) ;

    var lastRow = tbl.rows.length;
    var iteration = lastRow;
    var row = tbl.insertRow(lastRow);
    var cell3 = row.insertCell(2);
    cell3.innerHTML = "<INPUT type='checkbox' name='is_correct'
    id='is_correct' value='" + index[iteration-1] + "'>" ;


    In this is_correct is of type String[]. In mozilla even if I select the value of checkbox it is giving me is_correct=null. In IE it is giving me proper value.
    can you help me on this point. Can you tell me instead of innerHTML what can I use?

  • #2
    Senior Coder
    Join Date
    Feb 2006
    Location
    USA
    Posts
    1,013
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Check Firefox's JavaScript Console for errors.

    Where is "tbl" set?

    P.S. Please read Guidelines and Suggestions for Posting on Web Development Forums.
    Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions
    Java != JavaScript && JScript != JavaScript
    Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •