Results 1 to 4 of 4

Thread: Help with Netscape / Ie Support for dynamic tables

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Location
    Melbourne Australia
    Posts
    6

    Post

    I want to have a table that support the adding of rows without having call the server to get the new page. I have got this working under IE but the same code doesnt work under netscape (no add row support)

    The way i have this working is

    var oRow, oCell;
    var i, j;

    // Insert row from the first body.
    intRowCount++;

    oRow = oTBody1.insertRow();
    oCell = oRow.insertCell();
    oCell.innerHTML = "<select style='Font-Size:8pt' name=selDate" + intRowCount + "></select>";
    oCell = oRow.insertCell();
    oCell.innerHTML = "<SELECT style='Font-Size:8pt' name=selSchool" + intRowCount + ">";
    oCell = oRow.insertCell();
    oCell.innerHTML = "<input type=hidden name=txtworkdesc" + intRowCount + "><a href=# onclick='OpenDesc(" + intRowCount + ")'><CENTER><IMG border=0 SRC='../images/text.gif'></a>";
    oCell = oRow.insertCell();
    oCell.innerHTML = "<SELECT style='Font-Size:8pt' name=selHourStartTime" + intRowCount + "></Select><SELECT style='Font-Size:8pt' name=selMinStartTime" + intRowCount + "></Select>";
    oCell = oRow.insertCell();
    oCell.innerHTML = "<SELECT style='Font-Size:8pt' name=selBreakTime" + intRowCount + "></Select>";
    oCell = oRow.insertCell();
    oCell.innerHTML = "<SELECT style='Font-Size:8pt' name=selHourEndTime" + intRowCount + "></Select><SELECT style='Font-Size:8pt' name=selMinEndTime" + intRowCount + "></Select>";

    UpdateDropDowns(intRowCount);
    document.frmMain.intNumrows.value = intRowCount;
    }

    Is there a way to get the same thing going under netscape 4+ ??

    Thanks in advance

  2. #2
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    that code doesn't help very much. What errors are you getting when you run it in netscape?

    Could you post some more of the code?

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  3. #3
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    Netscape doesn't support innerHTML. I'm not sure if you can accomplish this in Netscape.
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Location
    Melbourne Australia
    Posts
    6

    Arrow More details

    Here are some more details on what i am trying to achieve.

    I have a table with coed on the bottom of it as follows
    <tbody id=oTBody1 class=TBody></tbody>
    This marks the table id oTbody

    Then there is a button which calls the above java script. Under IE 5.5 it all works fine, the code adds another row to the table, then adds the cells with the code for the inner html incrementing the field values by 1 so i can reference the data when the submit is done.

    Under netscape 6.0 it doesnt give an error message but under netscape 4.04 it returns oTBody1

    Anyone have any idea how i can get something like this going with netscape ???

    Thanks in advance

    Dave

Posting Permissions

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



Click Here to Expand Forum to Full Width