How To Read Data From Html Table.....?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nirmalsingh
    New Member
    • Sep 2006
    • 218

    How To Read Data From Html Table.....?

    hi everybody,
    i want to enter some data in text box and load it in html table for viewing purpose. atlast i want read all the data from html table and save in database.help me to do this?
    1.how to read data of particular cell(<td>)
    2.how to read data of particular row?(<tr>)
    3.how to read data as a whole from html table?
    HELP ME WITH SAMPLE CODE PLZ..
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    This is mainly a javascript problem, but will include some server-side code (for the database part), but don't double post. A moderator will probably move it soon.

    Post the code you have so far (in code tags please).

    Comment

    • nirmalsingh
      New Member
      • Sep 2006
      • 218

      #3
      Code:
       <html>
      <head></head><body><table><tr><td>nirmal</td><td>singh</td></tr>
      <tr><td>madurai</td><td>tamilnadu</td></tr></table></body></html>
      for example
      i want the result as
      var strTABLEvalue=n irmal,singh,mad urai.tamilnadu
      var strTDvalue=nirm al or singh etc.,

      i can be confortable with c#,,javascript codings.

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        Using the DOM is the best way. Go to brainjar.com and look at his excellent tutorials.

        Comment

        • AricC
          Recognized Expert Top Contributor
          • Oct 2006
          • 1885

          #5
          I'm going to move this to JS, we can move/copy further from there. Do you have any code other than the table done?

          Comment

          Working...