embed csv file in an html ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • erwin1177
    New Member
    • May 2014
    • 1

    embed csv file in an html ?

    hi,

    I've been trying to embed a csv file into my html file..i have tried many source code, but nothing works.

    Code:
    <html>
    <head><title>Reading values into a table</title></head>
    <body>
    <table datasrc='#data'>
      <thead>
         <tr><th>Number</th><th>Category</th></tr>
      </thead>
      <tbody> <tr>
         <td><span datafld='number'> </span></td>
         <td><span datafld='category'></span></td> 
      </tbody>
    </table>
    <object ID=data classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
      <param nAme="DataURL" value="cats.csv">
      <param nAme="UseHeader" value="true">
    </object>
    </body>
    </html>
  • Luuk
    Recognized Expert Top Contributor
    • Mar 2012
    • 1043

    #2
    You seem to be missing something... ;)

    There's a working example here: http://danml.com/bind/home.html
    (not my site)

    Comment

    • ashjones86
      New Member
      • Jun 2014
      • 23

      #3
      I would be looking down the php route for this myself.

      Comment

      • nomad
        Recognized Expert Contributor
        • Mar 2007
        • 664

        #4
        Look at your scripts because they are
        case-sensitive
        punctuation has to be right
        is the .csv in the right directory
        Closing tab are needed
        Look at what Luuk sent you.

        Comment

        Working...