On 29 May 2008, at 14:12, Grégoire wrote: > echo object_input_date_tag ($user, 'getDob', 'rich=true'); > > I want the form to be displayed in a DIV, loaded with AJAX. But when I > do that, the button next to the field, which is supposed to display > the calendar, is always disabled, with the "disabled" html attribute: > > <input id="dob" type="text" size="12" value="2013-07-20" name="dob"/> > <button id="trigger_dob" onclick="return false" disabled="disabled" > type="button">...</button> > > But if I load this form directly in a simple page, without AJAX, > everything works fine... > > <input id="dob" type="text" size="12" value="2013-07-20" name="dob"/> > <button id="trigger_dob" onclick="return false" type="button">...</ > button> > <script type="text/javascript">
I think you will need to "allow" javascript in your ajax call by passing 'script' => true to it or something like that. Alexander --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---