Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Create table from Javascript

Create table from Javascript

Scheduled Pinned Locked Moved Web Development
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hiral_shah
    wrote on last edited by
    #1

    Hi there, Can you tell me that how can I create a dynamic html table from javascript :confused:

    -------------------------------------------------------------------------------------------------- Hiral Shah India If you think that my question is good enough and can be helpful for other then don't forget to vote. :)

    B S 2 Replies Last reply
    0
    • H hiral_shah

      Hi there, Can you tell me that how can I create a dynamic html table from javascript :confused:

      -------------------------------------------------------------------------------------------------- Hiral Shah India If you think that my question is good enough and can be helpful for other then don't forget to vote. :)

      B Offline
      B Offline
      Bradml
      wrote on last edited by
      #2

      The idea is to create a XML element with the properties you want using javascript and insert it into the document.


      Brad Australian - bryce on "Problems with Code Project" *sigh* Maunder's been coding again...

      1 Reply Last reply
      0
      • H hiral_shah

        Hi there, Can you tell me that how can I create a dynamic html table from javascript :confused:

        -------------------------------------------------------------------------------------------------- Hiral Shah India If you think that my question is good enough and can be helpful for other then don't forget to vote. :)

        S Offline
        S Offline
        subrata jana
        wrote on last edited by
        #3

        hi.. function CreateDynamicTable(noofRows,noofCols) { noofRows =5; noofCols = 5; var str = ""; for(var i=0;i"; } str += ""; } str += "

        "; // if u dont have any html contol to load the table then create a div // and attach it to form. var dv; dv = document.createElement('div'); dv.setAttribute('id',"LoadDiv"); //dv.style.backgroundColor = 'Red; dv.innerHTML=str; document.forms[0].appendChild(dv); }

        H 1 Reply Last reply
        0
        • S subrata jana

          hi.. function CreateDynamicTable(noofRows,noofCols) { noofRows =5; noofCols = 5; var str = ""; for(var i=0;i"; } str += ""; } str += "

          "; // if u dont have any html contol to load the table then create a div // and attach it to form. var dv; dv = document.createElement('div'); dv.setAttribute('id',"LoadDiv"); //dv.style.backgroundColor = 'Red; dv.innerHTML=str; document.forms[0].appendChild(dv); }

          H Offline
          H Offline
          hiral_shah
          wrote on last edited by
          #4

          Thank you for the reply. :-D

          -------------------------------------------------------------------------------------------------- Hiral Shah India :)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups