Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6915667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:30:14+00:00 2026-05-27T09:30:14+00:00

I am trying to create a Javascript template with tables and I want to

  • 0

I am trying to create a Javascript template with tables and I want to replace the values with JSON data. But I am having a hard time replacing the template data with JSON. maybe I am confusing you but http://jsfiddle.net/k6pJz/ is where I am. All your help is highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:30:15+00:00Added an answer on May 27, 2026 at 9:30 am

    Fixed: http://jsfiddle.net/k6pJz/10/

    This code had multiple syntax errors, and malformed JSON. And would still not have worked afte that. To name a few:

    • JSON had a smart quote ” instead of the only valid JSON quote character “.
    • JSON was missing the last closing quote
    • You had had a receiver less method call after a line with a semi colon which doesn’t work at all. foo.innerHTML; .replace('a', 'b')
    • Your second regex does not start with a / character.
    • You never reassigned the value of the parsed template back to the .data element.

    Lastly, you may want to look into some templating libraries like the one built into jQuery or Mustache. Thats only two but there are tons, and they make your life much easier.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a base template which then loads data depending on what
I am trying to create a super simple JavaScript templating solution. I want to
I'm trying to create a small Javascript framework that I can use in my
I am trying to create a countdown using javascript. I got some code from
I am trying to create a form using only JavaScript. I mean create a
I am trying to create a checkbox dynamically using following HTML/JavaScript. Any ideas why
I am trying to create a new Element in my javascript code and append
i am just trying to create a link which execute some JavaScript in stead
i am trying to figure out how to create a javascript alert box asking
I am trying to create a sortable image matrix, 5x5 using scriptaculous javascript library

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.