map.htm edited online with Bitbucket
This commit is contained in:
parent
54098872f3
commit
3489c035a5
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue