Jquery returns internal server error
Posted
by
Chocol8
on Stack Overflow
See other posts from Stack Overflow
or by Chocol8
Published on 2012-12-16T22:59:59Z
Indexed on
2012/12/16
23:03 UTC
Read the original article
Hit count: 183
I am sure i am doing something bad here, but i cannot figure out what.
<script type="text/javascript">
$(function () {
$("li").bind("click", function () {
var sel = $(this).attr('id').toString();
$.ajax({
type: "POST",
contentType: "application/json",
data: sel,
url: "Default.aspx/SaveValue",
dataType: "text",
success: function (data) {
alert(data.d);
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
debugger;
}
});
});
});
</script>
Any advises please? And here is the debug info gathered
© Stack Overflow or respective owner