I am working with asp.net. Before the page is submitted to the server, an ajax validation is called to confirm the update. The user is allowed to cancel the save using client side confirm(). If the user back out, I want to prevent the submit by calling preventDefault (). However, jquery returns error "Member not found". Any Idea?
Here is the code: <script type="text/javascript"> $(document).ready(function() { $("#Button1").click(function(e) { $.get("GetConfirmation.aspx", { param1: "test", param2: "data" }, function(result) { if (!confirm('Do you want to continue?')) e.preventDefault(); } , "text"); }); </script> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---