PDA

View Full Version : حرفه ای: کار نکرن popup modal box در Master page



gilproject
یک شنبه 15 دی 1392, 15:16 عصر
با سلام. من از یک کتابخانه jquery برای Confirm modal popup تحت وب استفاده کردم. این کدی که ارائه می کنم در صفحه asp.net معمولی کار میکنه اما وقتی داخل Masterpage میزارم این کد کار نمیکنه. حتی قسمت جاوا اسکریپت رو هم فقط داخل contentpage گذاشتم . باز کار نکرده
<script type="text/javascript" src="//code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="//code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<link rel="Stylesheet" href="//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />

<link rel="stylesheet" type="text/css" href="css/jquery.confirmon.css"/>
<link rel="stylesheet" type="text/css" href="css/sample.css"/>
<script type="text/javascript" src="js/jquery.confirmon.js"></script>


<script type="text/javascript">
$(function () {
$('#b111111').confirmOn('click', function (e, confirmed) {
if (confirmed) { // Clicked yes
return true;
} else { // Clicked no
$('#msg_button_1').fadeIn();
}
});

$('#button_1').confirmOn({
questionText: 'آيا از حذف اطلاعات موردنظر مطمئن هستيد!؟',
textYes: ' بله ',
textNo: 'خير'
}, 'click', function (e, confirmed) {
if (confirmed) return true;
});

$('#div_1').confirmOn('mouseover', function (e, confirmed) {
if (confirmed) $(this).html('Handler called');
});

$('#div_2').confirmOn('mouseover', { arg1: new Date() }, function (e, confirmed) {
if (confirmed) $(this).html('Data argument: ' + e.data.arg1);
});

$('#button_3').confirmOn({
classPrepend: 'myprefix'
}, 'click', function (e, confirmed) {
if (confirmed) $(this).remove();
});

});

</script>
114894