jquery ajax request is Forbidden in FF 3.6.2 and IE. How to fix (any workaround)?
- by 1gn1ter
<script type="text/javascript">
$(function () {
$("select#oblast").change(function () {
var oblast_id = $("#oblast > option:selected").attr("value");
$("#Rayondiv").hide();
$.ajax({
type: "GET",
contentType: "application/json",
url: "http://site.com/Regions.aspx/FindGorodByOblastID/",
data: 'oblast_id=' + oblast_id,
dataType: "json",
success: function (data) {
if (data.length > 0) {
var options = '';
for (p in data) {
var gorod = data[p];
options += "<option value='" + gorod.Id + "'>" + gorod.Name + "</option>";
}
$("#gorod").removeAttr('disabled').html(options);
} else {
$("#gorod").attr('disabled', false).html('');
}
}
});
});
});
</script>