Hi guys,
I'm rather new to EJS so this might be a basic question:
I created my own EJS template in which I would like to "dynamically"
create new objects.
For implementing the calendar-popup by mattkruse: to be found here:
http://www.mattkruse.com/javascript/calendarpopup/index.html
Now, it seems to me, that the objects, created by the EJS code
(embedded in <% %> )
are not available anymore when the code is rendered...
Currently my code looks like this:
<div id="<%=this['@name']%>" name="<%=this['@name']%>">
<input type="text" class="datefield" name="<%=this['@group']
+"."+this['@name']%>" id="<%=this['@name']%>">
<%
var newCalCode = 'var myCal'+this['@name']+' = new
CalendarPopup(\"'+this['@name']+'\");';
eval (newCalCode);
%>
So as you can see, multiple INPUT-Areas will be created, each of them
needs to have its own "CalendarPopup"
Object...
Any ideas how to achive this?
Best regards,
Tom