Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Zoho Docs
Google Docs
Each Attachment size should not exceed 1MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
dfg001
dfg001's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
Dialog + Datepicker
[0Replies]
04-Dec-2012 08:46 AM
Forum:
Using jQuery UI
Проблема если закрывать диалог после выбора даты
перекидывает на
hash #
из-за этого перекидывает на начало страницы
Problem if to close dialogue after a date choice
throws on
hash #
because of it throws for the page beginning
$("#popup_calendar").datepicker({
onSelect: function() {
var zn = $("#popup_calendar").val();
alert(zn);
$("#dialog_calendar").dialog("close");
}
});
Full code:
<html>
<head>
<title>Зв</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<script src="/jquery-ui-1.9.2.custom/js/jquery-1.8.3.min.js"></script>
<link rel="stylesheet" href="/jquery-ui-1.9.2.custom/css/ui-lightness/jquery-ui-1.9.2.custom.min.css">
<script src="/jquery-ui-1.9.2.custom/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="/jquery-ui-1.9.2.custom/js/jquery.ui.datepicker-ru.js"></script>
<script type=text/javascript>
$(document).ready(function(){
$("#popup_calendar").datepicker({
onSelect: function() {
var zn = $("#popup_calendar").val();
alert(zn);
$("#dialog_calendar").dialog("close");
}
});
$("#dialog_calendar").dialog({
autoOpen: false,
height: 450,
width: 370,
resizable: false,
modal: true,
position: ["center",70],
buttons: {
"ОК": function() {
var zn = $("#popup_calendar").val();
alert(zn);
$(this).dialog("close");
},
"Удалить": function() {
$(this).dialog("close");
},
"Отмена": function() {
$(this).dialog("close");
}
},
close: function() {
allFields.val("").removeClass("ui-state-error");
}
});
$(".nnn").click(function(){
$("#dialog_calendar").dialog("open");
});
});
</script>
</head>
<body>
<div id="dialog_calendar" title="Н">
<p class="tips"></p>
<div id="popup_calendar"></div>
</div>
<p style="height:200%;">Пролистайте в низ</p>
<p class="nnn" style="background:red;">Click</p>
<p style="height:50%;"> </p>
</body></html>
«Prev
Next »
Moderate user : dfg001
Forum