Closed GoogleCodeExporter closed 9 years ago
Thanks for the bug report. Which version of the date picker are you using? And
how do
you initialise the date picker?
Thanks,
Kelvin :)
Original comment by kelvin.l...@gmail.com
on 16 Dec 2008 at 9:11
Thanks for the reply.
I am not sure if this is the issue with date picker or with the conversion
interceptor in struts 2. Still looking into that.
Version is 1.2.6
Below is the script to initialize the picker.
<script type="text/javascript">
$(document).ready(function(){
$("#results").hide();
updateUI();
stripTables();
addRemoveHandler();
});
function updateUI() {
$(".date").datepicker({
showOn: "button",
showOtherMonths: true,
speed:'fast',
showAnim: 'fadeIn',
buttonImage: "<s:url value="/images/calendar_thumb.gif"/>",
buttonImageOnly: true
});
$(".date").width( 120 );
$(".date").removeClass("date");
$(".calender_thumb").removeClass("calender_thumb");
$(".time").width('6em');
$(".ssn").example("NNN-NN-NNNN");
}
function stripTables() {
$(".tbody tr:even").removeClass("offColor");
$(".tbody tr:even").addClass("onColor");
$(".tbody tr:odd").removeClass("onColor");
$(".tbody tr:odd").addClass("offColor");
}
var fadeTime = "slow"
var count = 1;
function addRemoveHandler() {
$("a.remove").click( function() {
var nextId = "remove"+count++;
$(this).parents("tr").addClass(nextId);
$("table tr."+nextId).fadeOut(fadeTime,function (){
$("table tr").remove("."+nextId);
stripTables();
});
});
}
</script>
Thanks for youe time.
Original comment by er.sukh...@gmail.com
on 16 Dec 2008 at 9:27
It looks like you are using the jQuery UI datepicker and not my jQuery
datePicker
(which predates the UI one - otherwise I would have chosen a different name).
If you would like to find out more about my datePicker you can check it out
here:
http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/
Thanks,
Kelvin :)
Original comment by kelvin.l...@gmail.com
on 16 Dec 2008 at 11:32
Original issue reported on code.google.com by
er.sukh...@gmail.com
on 16 Dec 2008 at 6:27