Hi ,
i am implementing a javascript calendar in a web2 application.
i am using dynarch calendar ( )
the calendar works fine. there is one init function in my base HTML document that initializes the calendar.
<script type="text/javascript">
Calendar.setup({ inputField : "textID", ifFormat:"%Y-%m-%d %I:%M %p", showsTime:true, button:"date_1", step:1});
</script>
the calendar works fine , but only when the textID is set in the html text field properties. the problem is that this text id is php variable and that it is set dinamically.
i was wondering can i attach the above initialisation function to an image with onclick event?
i tried
onclick="Calendar.setup({ inputField:"<?=$elm_id?>", ifFormat:"%Y-%m-%d %I:%M %p", showsTime:true, button:"date_1", step:1});
but it shows syntax error!
any suggestions?
thanx
i am implementing a javascript calendar in a web2 application.
i am using dynarch calendar ( )
the calendar works fine. there is one init function in my base HTML document that initializes the calendar.
<script type="text/javascript">
Calendar.setup({ inputField : "textID", ifFormat:"%Y-%m-%d %I:%M %p", showsTime:true, button:"date_1", step:1});
</script>
the calendar works fine , but only when the textID is set in the html text field properties. the problem is that this text id is php variable and that it is set dinamically.
i was wondering can i attach the above initialisation function to an image with onclick event?
i tried
onclick="Calendar.setup({ inputField:"<?=$elm_id?>", ifFormat:"%Y-%m-%d %I:%M %p", showsTime:true, button:"date_1", step:1});
but it shows syntax error!
any suggestions?
thanx