[Phpmyadmin-devel] Ajax and "Insert for a table in Database structure"

Thilanka Kaushalya lgtkaushalya at gmail.com
Wed Jul 6 17:06:05 CEST 2011


Hi Marc and Rouslan,

> There is a problem with this feature: when the table has a DATETIME
> > column, the picker icon does not show up.
> >
> > Have a look at [0] where Rouslan explains that he fixed a similar
> > problem in his repository.
> >
> > [0]
> >
> https://sourceforge.net/tracker/index.php?func=detail&aid=3354360&group_id=23067&atid=377410
> >
>
>
Okay. I'll go through that.


> The problem there is that the datepickers/timepickers are attached to
> all relevant fields on page-load by functions.js, however in AJAX mode
> the fields are created after page-load and the pickers are not attached,
> so it's necessary to bind them manually after showing the dialog to the
> user. My code for this looks like this (the snipped is simplified for
> clarity):
>
> ---SNIP---
> /**
>  * Display the dialog to the user
>  */
> RTE.$ajaxDialog = $('<div>' + data.message + '</div>').dialog(options);
> RTE.$ajaxDialog.find('.datefield, .datetimefield').each(function () {
>    PMA_addDatepicker($(this));
> });
> ---SNIP---
>
>
Thanks for the information.

Regards,
Thilanka.


-- 
L G Thilanka Kaushalya
Computer Science & Engineering,
University of Moratuwa,
Sri Lanka

Connect with me at,
      Gmail        : lgtkaushalya at gmail.com
      Twitter       : @thilanka_k
      Facebook  : Thilanka Kaushalya
      Yahoo       : lgtkaushalya at yahoo.com
      Blog          : http://coders-view.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20110706/5d462332/attachment.html>


More information about the Developers mailing list