0

I want a page (showmarker.php) that It is used in Google Maps and Markers:

marker.set("type", "point");
    marker.set("id", c);
    google.maps.event.addListener(marker, 'click', (function(marker, c) {
        return function() {
            window.location.href = "showmarker.php?location=" + c; 
            canter=myLatLng;
        }
    })(marker, c));

this function active with click on each marker.I want send c parameter to showmarker.php without page refresh and get it with php.Please Help me...

  • "without page refresh" … so why are you setting `location.href`?! – Quentin May 06 '16 at 15:53
  • The search term you're looking for is "AJAX". Using AJAX, your JavaScript code can send requests to server-side resources (pages) and read those responses without refreshing the page. – David May 06 '16 at 15:54

0 Answers0