0

I am working on a Google Map api3, I am adding points on the map and save it to my database this part is working fine now in the end of adding the map and click on save and close I need to redirect to another page which will tell the user thanks you have finished and everything is OK

this is the part responsible for my requirement on Google Map Java script

var url = "manageMap.php?propid=<?php echo $p; ?>&name=" + name + "&address=" + address +
                "&type=" + type + "&lat=" + latlng.lat() + "&lng=" + latlng.lng();
      downloadUrl(url, function(data, responseCode) {
        if (responseCode == 200 && data.length <= 1) {
          infowindow.close();
          document.getElementById("message").innerHTML = "Location added.";
        }
      });
    }

how I can edit this part to redirect the page after I finish to "Thanks everything is saved and you are finished"

any way to change this line document.getElementById("message").innerHTML = "Location added."; to redirect to another page

Edited by johnef_sh: clear my qustion

2
Contributors
2
Replies
17
Views
3 Years
Discussion Span
Last Post by johnef_sh
0

when the client click on save and close document.getElementById("message").innerHTML = "Location added.";

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.