Perhaps someone can help me with this. I do load some html-code via ajax. After successful loading i tried to attach an calendarobject to one of the loaded fields, but dhtmlxCalendar cannot find it (Error-Console says: wCal.con is null).
Is there a way to attach it correctly?
Here’s some example code. The attach-function works well on a field that is there from startup:
there is a typo in your code. There must be
Thank you, i just typed it into the posting without testing it again
Any suggestion about the problem?
the provided code works correctly (with attach(‘calInput’)).
Perhaps i should add some html code to show where my problem ist:
<button onclick="create()">New Calendar</button>
After clicking the button a new input-field appears. Reading the function attach() this new input-field should have an attached calendar–ibject now. But clicking into the new input-field only generates the “no object” error. I tested it in ie and firefox - both ended with the same error.
please provide the complete demo with all necesasry libraries to recreate the problem.
I’m just a lousy programmer. You’re right, it was just a damn little typo error
Now the calendar works fine and i’m happy.
Thank you very much for your patient and the help you provided to me.
[Topic can be closed]