I am attempting to retrieve the array containing news articles for my marker infoWindow in the addMarker function using the following code snippet:
var parameter{
geo: place.postal_code
}
$.getJSON("articles.php", parameter)
.done(function(data, textStatus, jqXHR) {
var articles = data;
}
However, as soon as I add this code, my program hangs and no longer displays any of my markers (which worked previous to this). I think I need to get this data in an array, so that I can somehow explode it into content I can use in infoWindow, but I can't get past this.
articles.php is returning the correct array of links and titles when accessing it directly thru the browser.
Is there an error in this code and/or should I be using a different (simpler) method to get and display this info. Any hints/help/links to reference materials would be very much appreciated. I've spent hours and hours on this issue.