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

  • SEARCH
  • Home
  • 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 5929429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:25:13+00:00 2026-05-22T14:25:13+00:00

hi i am doing on a project i need to use the json format

  • 0

hi
i am doing on a project i need to use the json format for the data
but i am ask to put the json in the html
after that use ajax and call into the javascript function
anyone know how can i put the json in html and how to use ajax
this is my json data

`[“book”:

    {
    "title":"JavaScript, the Definitive Guide",
    "publisher":"O'Reilly",
    "author":"David Flanagan",
    "cover":"/images/cover_defguide.jpg",
    "blurb":"Lorem ipsum dolor sit amet, consectetuer adipiscing elit."
        },


    {
    "title":"DOM Scripting",
    "publisher":"Friends of Ed",
    "author":"Jeremy Keith",
    "cover":"/images/cover_domscripting.jpg",
    "blurb":"Praesent et diam a ligula facilisis venenatis."
        },

    {
    "title":"DHTML Utopia: Modern Web Design using JavaScript & DOM",
    "publisher":"Sitepoint",
    "author":"Stuart Langridge",
    "cover":"/images/cover_utopia.jpg",
    "blurb":"Lorem ipsum dolor sit amet, consectetuer adipiscing elit."

}

]`

  • 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-22T14:25:14+00:00Added an answer on May 22, 2026 at 2:25 pm

    Ok, so what it sounds like you want is just to be able to see What’s returned by an AJAX call without doing any logic on the page itself.

    Simply doing this:

    json.html:

    <html>
      <head><title>My JSON</title></head>
      <body>
        {
          "menu": {
            "id": "file",
            "value": "File",
            "popup": {
               "menuitem": [
                   {"value": "New", "onclick": "CreateNewDoc()"},
                   {"value": "Open", "onclick": "OpenDoc()"},
                   {"value": "Close", "onclick": "CloseDoc()"}
            ]}
        }}
      </body>
    </html>
    

    And when you call your ajax function, the content of the page will be returned.

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

Sidebar

Related Questions

I'm doing a project right now that might use a markup framework that I'll
I found the need to use String.format in my project. However, this doesn't work
I'm currently doing a project that has to be multi-lingual. I need to be
I have a project in Xcode that I need to use the AWS SDK
Im doing this project where i need to download files through a webservice (images,
I am doing a project at the moment and I need an efficient method
I am doing a project, for which I need to know all the wikipedia
I'm doing a Get and Post method for an android project and I need
So, I'm doing a setup project, all written in VB.NET, and I need to
For a project I am doing I need to manually create a .net project.

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.