Questions tagged [getjson]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
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 ...
0
votes
1answer
406 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 ...
0
votes
1answer
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
0
votes
1answer
292 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 ...
1
vote
1answer
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("...
0
votes
1answer
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 ...
1
vote
1answer
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, ...