Hi Marc and Rouslan,<br><br><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The problem there is that the datepickers/timepickers are attached to<br>
all relevant fields on page-load by functions.js, however in AJAX mode<br>
the fields are created after page-load and the pickers are not attached,<br>
so it's necessary to bind them manually after showing the dialog to the<br>
user. My code for this looks like this (the snipped is simplified for<br>
clarity):<br>
<br>
---SNIP---<br>
/**<br>
 * Display the dialog to the user<br>
 */<br>
RTE.$ajaxDialog = $('<div>' + data.message + '</div>').dialog(options);<br>
RTE.$ajaxDialog.find('.datefield, .datetimefield').each(function () {<br>
    PMA_addDatepicker($(this));<br>
});<br>
---SNIP---<br>
<font color="#888888"><br></font></blockquote><div><br></div></div></div></div></blockquote><div>These information were very helpful for me. </div><div><br></div><div>I went through you logic and modified my code for insert dialog and now the date pickers are working correctly. I pushed my changes to the repo. Please check that. </div>
</div><br clear="all">Regards,</div><div>Thilanka. </div><div><br>-- <br><div><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px"><div style="text-align:left">L G Thilanka Kaushalya     <br>
Computer Science & Engineering,    <br><div style="color:rgb(80, 0, 80)">University of Moratuwa,<br>Sri Lanka<span></span><br>                          <br></div></div>Connect with me at,<br>      Gmail        : <a href="mailto:lgtkaushalya@gmail.com" style="color:rgb(0, 0, 204)" target="_blank">lgtkaushalya@gmail.com</a><br>
      Twitter       : @thilanka_k<br>      Facebook  : Thilanka Kaushalya<br>      Yahoo       : <a href="mailto:lgtkaushalya@yahoo.com" style="color:rgb(0, 0, 204)" target="_blank">lgtkaushalya@yahoo.com</a></span></div>
<div>      Blog          : <a href="http://coders-view.blogspot.com/" target="_blank">http://coders-view.blogspot.com/</a></div><br><br>
</div>