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

Filed under:
|
|

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 gatheredenter image description here

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ASP.NET