Michael, You need to initialize any third party scripts in the SimpleModal onShow callback. Here's an example of using Datepicker with SimpleModal: http://www.ericmmartin.com/code/datepicker/
-Eric On Aug 7, 2:34 am, Michael Anckaert <michael.ancka...@gmail.com> wrote: > Hello everyone, > > Using the simplemodal plugin I create a dialog dynamically from links > using > > $(".dialog-link").live('click', function(e) { > e.preventDefault(); > $.get($(this).attr('href'),function(data) { > $.modal(data, {onOpen: open, position: > ['10%','30%']}); > }); > }); > > (FYI: the onOpen callback just sets some height) > > The document returned by the ajax call (contained in data) has some > jquery calls to datepicker, etc. But when my dialog displays the > datepicker won't work. As far as I can tell the javascript in the > document called with AJAX isn't executed, but I do get my alert() test > statements... > > Does anyone know where my error lies? > > Thanks, > Michael