Create dynamic rows - Help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cindy

    Create dynamic rows - Help

    hi,

    Can someone point me to a website where I can find a "create dynamic rows"
    javascript that work for IE, NS6 & NS7?

    Thank You.

    regards,
    Cindy



  • kaeli

    #2
    Re: Create dynamic rows - Help

    In article <bed8e3$m6r$1@m awar.singnet.co m.sg>, stayhardsg@yaho o.com.sg
    shared the illuminating thought...[color=blue]
    > hi,
    >
    > Can someone point me to a website where I can find a "create dynamic rows"
    > javascript that work for IE, NS6 & NS7?
    >
    > Thank You.
    >
    > regards,
    > Cindy
    >[/color]

    I have one that you might be able to modify to suit you.
    NN6+, Mozilla, and IE5+ only.
    Note that your table MUST have a TBODY node for this to work.

    Excerpt from a really big script that has been tested in NN6, Mozilla
    1.2, and IE6:

    TBL = document.getEle mentById("t1");
    TR = document.create Element("TR");
    TD = document.create Element("TD");
    TH = document.create Element("TH");
    TH.appendChild( document.create TextNode("Your Name:"));
    S = document.create Element("input" );
    S.setAttribute( "type","tex t");
    S.setAttribute( "name","tname") ;
    TD.appendChild( S);
    TR.appendChild( TH);
    TR.appendChild( TD);
    TBL.appendChild (TR);


    The whole script is very large and makes a dynamic form for customer
    support (intranet application), so I didn't want to post it here.

    ----------------------------------------
    ~kaeli~


    Kill one man and you are a murderer.
    Kill millions and you are a conqueror.
    Kill everyone and you are God.
    ----------------------------------------

    Comment

    Working...