Hello,
I’d like to use the calendar1 (the one from the plugin NewsPublisher) in a custom eForm.
I have added the JavaScript.
<script language="JavaScript" src="manager/media/script/datefunctions.js"></script><script type="text/javascript">
var elm_txt = {}; // dummy
var pub = document.forms["MyForm"].elements["DatePicker"];
var nwpub_cal1 = new calendar1(pub,elm_txt);
nwpub_cal1.path="/aboutcuba/manager/media/";
nwpub_cal1.year_scroll = true;
nwpub_cal1.time_comp = true;
</script>
But I always get this error "
document.forms.MyForm has no properties"
although I have defined a form as follow:
<form action="[~[*id*]~]" id="MyForm" method="post" name="MyForm">
Does anyone has an idea of what I’m doing wrong?
Thanks