Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2017
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Converting JSON Data to a formatted HTML Table

    I am wanting to connect a JSON file to an HTML table that automatically updates whenever a player joins into a formatted HTML Table. The JSON DATA in question looks like this, but with 30 other unique players

    Code:
    [{"endpoint":"[::ffff:109.158.227.56]:55932","id":3,"identifiers":["steam:110000103920a31","license:c652208b148ebf18df9a47406eee9dda1dafc2f4","ip:109.158.227.56"],"name":"WolfKnight","ping":80},{"endpoint":"[::ffff:70.121.107.69]:55192","id":2,"identifiers":["steam:11000011466daf7","license:a5ce0ae8a65a5e63acf93312cab54dbe5acf2871","ip:70.121.107.69"],"name":"Jenkins","ping":81}]
    This file automatically updates whenever a new player joins, so I would need something to automatically convert it into an HTML table. I've tried using some other JavaScript code, seen here, but that didn't work. Please note that I'm running this off a WAMP server and I am also new to web development. Please be patient with me.

  2. #2
    Regular Coder
    Join Date
    Apr 2011
    Posts
    166
    Thanks
    0
    Thanked 53 Times in 50 Posts
    You made a mistake with the id of your table.


 

Tags for this Thread

Posting Permissions

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