
July 27th, 2012, 08:57 AM
|
|
|
|
Jquery datepicker with coldfusion.navigate
Hey,
I'm tryig to use coldfusion.navigate to refresh a div when a date from my date picker is selected. I've got the datepicker submitting a url string and refreshing my div. My questions are...
1. is this the proper way to do this? i mean it works, it refreshes the div so it's not totaly wrong.
2. How can i pass the dateText in the variable date in the url?
I've posted this is the JS section as well.
Code:
$( "#datepicker" ).datepicker({
dateFormat : 'dd-M-yy',
defaultDate: mydatefinal,
onSelect: function(dateText, inst) { window.location.href = "javascript:ColdFusion.navigate('calendarout.cfm?date=','calendar-right',mycallBack,myerrorhandler);" }} );
});
|