Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

ajax post not working

$
0
0

Hi,

I have ajax:

<script src="js/jquery-1.10.1.min.js"></script><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script><script>$(document).ready(function () {$('#add-button-one').click(function () {
         //   alert('s');$.ajax({
                type: "POST",
                url: "default2.aspx/SaveLottery",
                data: JSON.stringify({ data: records }),
                dataType: "JSON",
                contentType: "application/json",
                success: function (data) {
                    alert("Saved Sucessfully");
                    window.location.reload();
                },
                error: function (xhr, textStatus, errorThrown) {
                    alert(errorThrown);
                }
            });

        });
    });
</script>

not working, but if I used only alert('test') working, what is problem with this?

I checked with firebug but POST not working.
Please help


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>