Questions tagged [getjson]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
35 views

Javascript 'Undefined' Variable

I am trying to import values for coordinates using getJson however the map doesn't load now and if I try to print the coordinates in an alert box for testing purposes, it says 'undefined'. // get ...
user avatar
  • 135
0 votes
1 answer
410 views

pset8 addMarker - unable to display contents of JSON inside info window

I'm struggling with this part of Pset8. I've written the code to add markers to my map, and to create an info window that opens when I click the marker. I can get a string of content into the window ...
user avatar
0 votes
1 answer
212 views

pset8 getJSON syntax info needed

have been Googling to find out the syntax for getting the flask url data to getJSON..can anyone point me to where that is? thanks
user avatar
  • 105
0 votes
1 answer
293 views

CS50 pset8 addMarker Getjson not working

I got "success" in the console which mean getjson returning an object. I try assign it to a var name news and put in back in showInfo but showInfo always output a loading image which mean typeof news ...
user avatar
1 vote
1 answer
146 views

pset8- AddMarkers, not even working to for a simple console.log() test

Can anyone tell me what's wrong with my code? It seems like a simple debug test with console.log() isn't even executing properly: function addMarker(place) { $.getJSON(Flask.url_for("...
user avatar
  • 215
0 votes
1 answer
106 views

Pset8 Articles.php returns 'undefined' as link and title values

I've searched for quite some time trying to find a solution, but all the solutions look exactly as the code I already wrote and it doesn't work for me. I use $.getJSON to get article list from ...
user avatar
  • 5
1 vote
1 answer
142 views

trouble with addMarker in pset8. getJSON seems to work but I'm not getting results

This is my code: marker.addListener('click', function(){ var content = ""; var query = {geo: place.place_name}; $.getJSON("articles.php", query) .done(function(data, textStatus, ...
user avatar