forked from datamade/vacant-building-finder
-
Notifications
You must be signed in to change notification settings - Fork 1
/
311post.html
53 lines (48 loc) · 2.05 KB
/
311post.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript">
function getUrlVars()
{
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
return vars;
}
$(function() {
//$('#311-content').load('https://servicerequest.cityofchicago.org/web_intake_chic/Controller', function() {
$('#invStreetNumber').val(getUrlVars()["invStreetNumber"]);
$('#invStreetPrefix').val(getUrlVars()["invStreetPrefix"]);
$('#invStreetName').val(getUrlVars()["invStreetName"]);
$('#invStreetSuffix').val(getUrlVars()["invStreetSuffix"]);
$("#motForm").submit();
//});
});
</script>
</head>
<div id="311-content"></div>
<form action="https://servicerequest.cityofchicago.org/web_intake_chic/Controller?op=locvalidate" method="post" id="motForm" NAME="motForm">
<INPUT TYPE="hidden" NAME="invInterfaceType" VALUE="WEBINTAK" />
<INPUT TYPE="hidden" NAME="invSRTypeCode" VALUE="BBK" />
<INPUT TYPE="hidden" NAME="invLocRequired" VALUE="Y" />
<INPUT TYPE="hidden" NAME="invStreetNumRequired" VALUE="Y" />
<INPUT TYPE="hidden" id="invStreetNumber" NAME="invStreetNumber" VALUE="" />
<INPUT TYPE="hidden" id="invStreetPrefix" NAME="invStreetPrefix" VALUE="" />
<INPUT TYPE="hidden" id="invStreetName" NAME="invStreetName" VALUE="" />
<INPUT TYPE="hidden" id="invStreetSuffix" NAME="invStreetSuffix" VALUE="" />
<INPUT TYPE="hidden" NAME="invStreetSuffixDir" VALUE="" />
<INPUT TYPE="hidden" NAME="invCity" VALUE="CHICAGO">
<INPUT TYPE="hidden" NAME="invStateCode" VALUE="IL">
<INPUT TYPE="hidden" NAME="invZipCode" VALUE="">
<INPUT TYPE="hidden" NAME="invCounty" VALUE="">
<INPUT TYPE="hidden" NAME="invBuildingName" VALUE="">
<INPUT TYPE="hidden" NAME="invFloor" VALUE="">
<INPUT TYPE="hidden" NAME="invUnitNumber" VALUE="">
<INPUT TYPE="hidden" NAME="invJurisdictionCode" VALUE="CHICAGO">
</form>
</html>