» Forums
» The DHTML Calendar
» News
» release 2.1
» innerHTML Problem (Sorry cant find how to start new thread)
innerHTML Problem (Sorry cant find how to start new thread)
2007/08/28 03:49
Viewed 15111 times
Replies: 0/0

i dinamically make a table (in php), inside are inputs text areas and i use a calendar for every row that i create (dinamically), I inserted to the main page by innerHTML, and I put an alert to see the code, everything looks good, but the calendar didnt work, I mean the image its ther but i clicked and nothig happends. I copy/paste the code of one row directly to the main page and it works! but not by innnerHTML, any idea why??? Code:

<input type="text" size="10" id="conflot_lote[x][y][terminacion]" name="conflot_lote[x][y][terminacion]" class="cuadrotexto">
<img src="images/calendar.png" id="boton_fecha[x][y][terminacion]" />
<script type='text/javascript'>
Calendar.setup({
inputField : 'conflot_lote[x][y][terminacion]',
ifFormat : '%Y-%m-%d',
showsTime : false,
button : 'boton_fecha[x][y][terminacion]',
align : 'Tl',
singleClick : true
});
</script>

(where x and y are variables)
The HTML display properly and the javascript text too.. dont know what else can i do! help!

Google