C
Candice
I have a calendar control which pops up as a new window when i click
on my textbox.
The calendar control returns a Javascript function whereby
"TextDateReceived" is the textbox ID.
When i close the calendar, the date is supposed to populate the
textbox ID "TextDateReceived".
<script language='javascript'>
window.opener.document.all['TextDateReceived'].value = '31/12/2003';
window.close();
</script>
I have used this calendar control everywhere in my application for
normal textboxes.
But this time i want to use it for the textboxes in a DataList
ItemTemplate.
I did as per normal and the calendar returns the javascript code as
shown above but it doesn't populate "TextDateReceived" as it could not
be recognised and object not found.
Is there anything i must add to make sure "TextDateReceived" is
referencing correctly?
on my textbox.
The calendar control returns a Javascript function whereby
"TextDateReceived" is the textbox ID.
When i close the calendar, the date is supposed to populate the
textbox ID "TextDateReceived".
<script language='javascript'>
window.opener.document.all['TextDateReceived'].value = '31/12/2003';
window.close();
</script>
I have used this calendar control everywhere in my application for
normal textboxes.
But this time i want to use it for the textboxes in a DataList
ItemTemplate.
I did as per normal and the calendar returns the javascript code as
shown above but it doesn't populate "TextDateReceived" as it could not
be recognised and object not found.
Is there anything i must add to make sure "TextDateReceived" is
referencing correctly?