Joomla 3 : JHtml::calendar was not working

885 views
Skip to first unread message

Gopi A

unread,
Jun 20, 2014, 4:29:41 AM6/20/14
to joomla-...@googlegroups.com
HI,

 I am working on Enqiry form, Here I need to place a Date field,For that I used this code :

<?php
 
        $attribs['class'] = 'input-medium';
$attribs['placeholder'] = 'Suggested Date';
echo JHtml::calendar("", 'jform[date_of_travel]', 'jform_date_of_travel', '%Y-%m-%d',$attribs);
 ?>

But once we click the calender button, Calender popup window not coming.
Even though I have import JFormHelper::loadFieldClass('calendar'); and JHTML::_('behavior.modal'); but no result :(

Could you please guide me anything I have missed ?

Thanks in advance.




dgt41

unread,
Jun 20, 2014, 7:35:18 AM6/20/14
to joomla-...@googlegroups.com
Try JHTML::_('behavior.calendar');

Gopi A

unread,
Jun 20, 2014, 7:55:53 AM6/20/14
to joomla-...@googlegroups.com
Yes!, Its working fine and removed some JQuery script, because its conflicting with Calendar.

Thanks :)


On Fri, Jun 20, 2014 at 5:05 PM, dgt41 <d.gram...@gmail.com> wrote:
Try JHTML::_('behavior.calendar');

--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-cm...@googlegroups.com.
To post to this group, send email to joomla-...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-cms.
For more options, visit https://groups.google.com/d/optout.



--
      Regards
gopi a on about.me
        Gopi A
Reply all
Reply to author
Forward
0 new messages