custom block question
Permalink
I have some additional javascript that I would like to have available in the add.php dialog (for the sake of having consistent date selection)
<script type="text/javascript">
$(function() {
$('.popupDatepicker').datepick();
});
</script>
but C5 is just omitting it like it's not there.
is this something that should be in auto.js somehow?
I'm good with php but JS is "the suck" for me ;-P
some guidance would be appreciated.
<script type="text/javascript">
$(function() {
$('.popupDatepicker').datepick();
});
</script>
but C5 is just omitting it like it's not there.
is this something that should be in auto.js somehow?
I'm good with php but JS is "the suck" for me ;-P
some guidance would be appreciated.
you could put it in the auto.js file (without the script tags). But there's no reason you couldn't put it in your add.php file. Something else is going on - like browser cache or your not working with the right file. Try printing out some non js stuff on that page.
nah. I am lost. lol
something is going awry in the block add.php. it's just dropping the <script> and any affiliated code. And auto.js does not appear to be working either.
I'm just trying to get the jQuery.datepick.js to work on a custom form block.
I couldn't get addHeaderItem to work from add.php either.
I am clearly missing something here.
So no one on here has ever used datepicker?
something is going awry in the block add.php. it's just dropping the <script> and any affiliated code. And auto.js does not appear to be working either.
I'm just trying to get the jQuery.datepick.js to work on a custom form block.
I couldn't get addHeaderItem to work from add.php either.
I am clearly missing something here.
So no one on here has ever used datepicker?
<script type="text/javascript"> $(function() { $('.popupDatepicker').datepicker(); }); </script>
??
(i.e. .datepickER(), not .datepick())