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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:08:00+00:00 2026-05-25T00:08:00+00:00

i have a working example which uses this url http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=jQuery16201154390876987067_1314382298849&tags=cat&tagmode=any&format=json&_=1314382298856 which gives me this

  • 0

i have a working example which uses this url

http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=jQuery16201154390876987067_1314382298849&tags=cat&tagmode=any&format=json&_=1314382298856

which gives me this json result (this is the beginning of it:)

jQuery162031768042474373037_1314374838725({
        "title": "Recent Uploads tagged cat",
        "link": "http://www.flickr.com/photos/tags/cat/",

When i paste this in jslint, it says it is not valid json

now i have my own json service, which returns this:

{
    "one0": "file201101_01.jpg ",
    "one1": "file201101_02.jpg ",
    "one2": "file201101_03.jpg ",
    "one3": "file201101_04.jpg "
}

which is valid json according to jslint.

now the first (seems to be invalid) one is read by jquery.getJSON, but mine (which seems to be valid) isn’t.

when i look in firebug, it ‘says’ that no content is returnd from my service, but the url shown is returning content when i copy-paste it in the browser.

This is my code:

$.getJSON("http://jadieda.com/myservice.php",  
    {    year: "2011",
        id : "1"
    },
    function(data) 
    {    
        alert(data);

    });

the alert(data) doesn’t go off, so my guess was that the calling of the service did not return valid json (because of this from the help:As of jQuery 1.4, if the JSON file contains a syntax error, the request will usually fail silently)

  • 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-25T00:08:01+00:00Added an answer on May 25, 2026 at 12:08 am

    That’s JSONP which is a way of getting cross domain AJAX.

    I don’t know why your service isn’t returning data without seeing the PHP. But if the status code is 204, no content. Then chances are you are not echo/print any data;

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

Sidebar

Related Questions

I have a web application which uses URLs that look like this: http://library.example.com/Register.aspx?query=academic&key=586c70bb-5683-419c-aae9-e596af9ab66a (The
I am working with this example to try and learn Sencha Touch. I have
I have this simple example I can't seems to get working : MERGE INTO
I have a website which uses Facebook's registration plugin. Everything is working fine, I
Does anyone have a working example of a video player built using Qt phonon?
Does anyone have a working example of OAuth authentication for twitter with Android? I
Sorry for repost but I have a better working example of data that reflects
Does anybody have an example of working with database using Visual C++ and OLEDB?
I have spatial search working well with SOLR 3.2 Example : ?q=*&fq={!geofilt pt=48.86761919303129,2.3527903735351856 sfield=coordinates
I'm working through the NerdDinner ASP.NET MVC 1.0 example. I have it all working

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.