Hi everyone,
Hope i have posted at the correct section.
Currently i am using ASP.NET UpdatePanel and a JQuery nyroModal.when i click on the link that have the CssClass that links to the nyroModal, it will display the error message instead of going to the success function. Is there anything i have to add?
Please guide me. I am new in JQuery.
<script type="text/javascript">
$(document).ready(function () {
$('.nyroModal').nyroModal();
$(".ModalUpdatePanel").live('click', function (evt) {
evt.preventDefault();
$(this).nyroModal({ sizes: { "w": "720", "h": "550"} });
$.ajax({
type: "POST",
url: "url",
contentType: "application/json; charset=utf-8",
data: {},
dataType: "json",
success: function (result) {
alert("Success");
},
error: function () {
alert("Error");
}
});
});
});
</script>
Please let me know if i am not providing enough message/code for you.
Thanks.