empty string returned from jhtml::calendar

20 views
Skip to first unread message

Troy Hall

unread,
May 20, 2016, 8:25:13 PM5/20/16
to joomla-dev-general

Anyone know why JHtml::calendar would return a empty string in $_POST ?


        echo JHTML::calendar('','expirydate', 'expirydate', '%Y-%m-%d',

            array('size'=>'12',

            'maxlength'=>'10',

            'class'=>' validate[\'required\']',

 

            ));

Thanks in advance..

Bear

hoochicken

unread,
May 23, 2016, 3:15:05 AM5/23/16
to Joomla! General Development
Hi,

it works fine here, the calendar field is displayed.
Maybe it is echoed in an invisible place/box, within a "script" tag.
Tip: Add echo '#x#'; in front and after your code.
Then search for '#x#' in the src code of the html website.
Then you see, where/if JHtml::calendar shows up,

Greetings
Mareike
Reply all
Reply to author
Forward
0 new messages