DMXzone Calendar 2 Support Product Page
Answered
Submit on Select not working
Asked 08 May 2014 10:40:36
1
has this question
08 May 2014 10:40:36 Ghassan Safadi posted:
I am trying to "submit" on Select for Calendar 2. Datepicker jquery works with this code:
$(function() {
$( "#datepicker" ).datepicker({
dateFormat: 'yy-mm-dd',
onSelect: function (dateText,inst){
$(this).parent('form').submit();
}
I tried to place in calendar code but I cannot get it to work ( that is submit on select)
<script type="text/javascript">
// <![CDATA[
jQuery(document).ready(
function()
{
jQuery("#dmxCalendar21".dmxCalendar2(
{"dateFormat": "yy-mm-dd", "altField": "datepicker", "altFormat": "yy-mm-dd", "displayInline": true, "condDates": [], "firstDay": 1, "showOn": "both", "duration": "slow", "showOptions": {"direction": "up", "easing": "swing"}, "yearRange": "c-10:c+10", "onSelect": "dmxCalendar2Action(\'copyFrom\',\'dmxCalendar21\', \'datepicker\', \'selectedDate\', \'yy-mm-dd\');openDMXzoneLightbox(\'popupchart.php\', {width:480, height:600}, window);"}
);
}
);
// ]]>
</script>
Replies
Replied 10 May 2014 12:04:47
10 May 2014 12:04:47 Ghassan Safadi replied:
I can get this to work in DatePicker but not in DMXZONE Calendar when I call the Javascript onSelect:
"onSelect": "MM_callJS(\'function (dateText,inst){$(\\\'#date1\\\').parent(\\\'form\\\').submit();}\');"}
<form Action="popupchart.php" method="POST">
<input name="date1" type="text" id="date1" />
<input type="submit" name="date1" value="Submit"/>
"onSelect": "MM_callJS(\'function (dateText,inst){$(\\\'#date1\\\').parent(\\\'form\\\').submit();}\');"}
<form Action="popupchart.php" method="POST">
<input name="date1" type="text" id="date1" />
<input type="submit" name="date1" value="Submit"/>
Replied 12 May 2014 09:01:39
12 May 2014 09:01:39 Teodor Kuduschiev replied:
Hello,
Unfortunately this is not possible using DMXzone Calendar 2
Unfortunately this is not possible using DMXzone Calendar 2