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 7078671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:34:35+00:00 2026-05-28T06:34:35+00:00

My friend has this embarassing problem. He’s trying to get the most basic of

  • 0

My friend has this embarassing problem. He’s trying to get the most basic of JSON examples to work, and he’s having no luck whatsoever. When referencing JSON sources in the same folder it doesn’t work, but when getting Twitter or Flickr data it has no problem.

I could give you a dozen examples of ones that aren’t working, but here’s one:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>json demo: simple</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js">   </script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
<script type="text/javascript">
$.getJSON('json.php', function(data) {
    $('.result').html('<p>' + data.foo + '</p>' + '<p>' + data.baz[1] + '</p>');
});
</script>
</head>
<body>
<div id="result">
</div>
</body>
</html>

The output from json.php is:

{
  "foo": "The quick brown fox jumps over the lazy dog.",
  "bar": "ABCDEFG",
  "baz": [52, 97]
}

This is an example taken off the web, and I’ve tried many more. Some don’t use PHP but a static text file, none of which work.

I’m embarassed to ask for help on something so basic… I mean he’s embarassed…

  • 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-28T06:34:36+00:00Added an answer on May 28, 2026 at 6:34 am

    While I’ve not fixed this particular example, I’ve since got other and more complicated examples working. I think this one failed due to the api declaration, but I’m not concerned as my problem was getting ANY similar script working.

    Apologies if anyone was looking at this.

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

Sidebar

Related Questions

Im trying to help a friend with his project. The website has this <li>
The basic problem is like this: A subscriber has successfully replicated a row from
I have this code to get the user name that a friend has messaged
I have a friend who has code like this in his wordpress files: Blockquote
I friend asked me this today. Picasa Web has a cool (and frightening :-)
Friend of mine has a problem :). There is an application written in Visual
A friend has asked me this, and I couldn't answer. He asked: I am
So I have a problem. Or rather my friend has a problem, since I
Im trying to replicate the functionality of this page (http://www.kissfm.ro/fresh-top-40/) for a friend who
One of my friend has been asked with a question Retrieving the max top

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.