Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // error handling
- $.ajaxSetup({"error":function(XMLHttpRequest,textStatus, errorThrown) {
- alert(textStatus);
- alert(errorThrown);
- alert(XMLHttpRequest.responseText);
- }});
- // ajax request using Jquery with POST method, data and function to load when success.
- $.ajax({
- type: 'POST',
- url: "data.php",
- data: {
- marker: markerData
- },
- success: function(data){
- loadMarkers();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement