Home > Not Working > Getjson Not Working

Getjson Not Working


Hot Network Questions Is Ni povas fari ĝin! The time now is 08:52 PM. structure tag in C vs C++ How can I create an image with a round globe like center? Send Cancel From : guestTo : Subject : Content : Type the characters you see in the picture below. http://searchwebmedia.com/not-working/getjson-callback-not-working.html

That API does support JSON-P, so if you use JSON-P to do your request, it should work. Take a look at this: Code: script $(document).ready(function(){ $.getJSON('list.json', function(data){ alert ("Anything!"); }); $("#b1").click(function(){ alert("asdads"); }); }); If you can access your browser's console, you should be able to see if this is in fact the error causing the data not to be displayed. I'd start by changing: $.getJSON("http://localhost/jsontest/a.json?callback=?", function(data) { to: $.getJSON("http://localhost/jsontest/a.json", 'callback=?', function(data) { share|improve this answer answered Jul 8 '10 at 13:10 Fotis 178314 No errors returned from Firefox - http://stackoverflow.com/questions/6002325/getjson-not-working

Getjson Method Not Working

Is it more efficient to have many or a few rotors? The only thing the console says "Uncaught TypeError: Cannot call method ‘getJSON' of undefined" dyr # February 6, 2014 at 2:03 pm The problem you're experiencing is due to this line: more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

It is perfectly fine to name the function inline in that syntax. What are the benefits of referential transparency to a programmer? Try this: $.getJSON(weblink, {}, function(data){ share|improve this answer answered May 14 '11 at 14:10 Chris 4521520 It's doesn't work either. –Jimmy May 14 '11 at 14:15 add a comment| $.getjson Not Working In Chrome following is test_json.php

Sign in Email Address Password I forgot my password Sign in $.getjson Not Working Localhost This is my js file: $(document).ready(function(){ $("button").click(function(){ $.getJSON( "https://www.bitstamp.net/api/eur_usd/", function( data ) { alert(data); }); }); }); Can anyone help me in getting this work? Linux questions C# questions ASP.NET questions fabric questions SQL questions discussionsforums All Message Boards... Join them; it only takes a minute: Sign up jQuery.getJSON() Not working up vote 0 down vote favorite I'm trying to get JSON array from my php-script.

Solution 1 Accept Solution Reject Solution try this