I am trying to render javascript
in all views .this java file is for datetimepicker
that i use in my views :
<script>
Calendar.setup({
inputField: 'date_input',
button: 'date_btn',
ifFormat: '%Y/%m/%d',
dateType: 'jalali'
});
</script>
I have to put in every views this script ,but it's not a good idea!!!so i put this script in header of layout page ,but i got this error when my pages is refreshed :
So where should i put this script to avoid this error ????
best regards .
any ideas will be appreciated .
` tag
– Oct 18 '14 at 09:47but again same error
– Ehsan Akbar Oct 18 '14 at 10:21