]>
gitweb.michael.orlitzky.com - dead/census-tools.git/blob - www/maps/maps/public/javascripts/maputils.js
1 function post_data(url
, data
) {
2 /* Create a new form, and add it to the DOM. Then, create a hidden
3 input control as a child of the form which contains the data that
4 we'd like to post. Finally, add the form to the document's body,
6 var new_form
= document
.createElement("form");
7 new_form
.method
= "post";
9 var new_input
= document
.createElement("input");
10 new_input
.setAttribute("id", "data");
11 new_input
.setAttribute("name", "data");
12 new_input
.setAttribute("type", "hidden");
13 new_input
.setAttribute("value", data
);
14 new_form
.appendChild(new_input
);
15 document
.body
.appendChild(new_form
);