map.htm edited online with Bitbucket

This commit is contained in:
Hain_31 2014-04-09 13:19:53 +00:00
parent 54098872f3
commit 3489c035a5
1 changed files with 42 additions and 24 deletions

View File

@ -1,4 +1,4 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
@ -24,9 +24,21 @@
hide: {
effect: "explode",
duration: 500
},
buttons: {
"Добавить точку": function () {
addNewPoint();
$(this).dialog("close");
},
"Закрыть": function () {
$(this).dialog("close");
}
}
);
});
});
function addNewPoint() {
@ -44,18 +56,25 @@
// /json/categories / addpoint
$.getJSON(
"/json/addpoint",
$.ajax({
type: 'POST',
responsQuerry,
url: "http://wikipoints.ru/json/addpoint",
function (data) {
data: responsQuerry,
dataType: 'json',
success: function (data) {
alert('ok' + data);
//curentObj.Id = data;
}).error(function (XMLHttpRequest, textStatus, errorThrown) {
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert("Ошибка - " + XMLHttpRequest.responseText);
}
});
}
@ -137,7 +156,6 @@
Источник:<br>
<input type="text" id="source" name="source" style="width:100%;"></p>
<input type="submit" id="add" onclick="addNewPoint()" value="Добавить">
</div>