Hi

I have a problem with jqmodal and ui datepicker.

Often datepicker just  doesn't appear when I initiate in in a jqmodal
window. Funnywise there isn't any warning or error in firebug.

than I have to clean cache in Firefox and datepicker appears again
during next load of modal window - even it appears slow and somehow
crankier than without modal windows.

I tried many things and spent quite some time on it, but I doesn't get
stable. Any ideas...

my code:.

//jqmodal
$('#mw1').jqm({ajax: 'offer.cfm?at=1&oid=#myOfferID#', ajaxText:
'Loading..',trigger: 'a.ad_text_trigger'});

//datepicker
<input type="text" id="valid_from" name=valid_from" value="" >
<input type="text" id="valid_to" name="valid_to" value=""/>


$().ready(function() {
                $('#frm input#valid_from').datepicker($.extend({},
                                                                        
$.datepicker.regional['de'], {
                                                                                
 dateFormat: 'm.d.yy',
                                                                                
 duration: "fast",
                                                                                
 showOn: 'both',
                                                                                
 buttonImage:cal.gif',
                                                                                
 buttonImageOnly: true
                                                                                
 }));
                $('#frm input#valid_to').datepicker($.extend({},
                                                                        
$.datepicker.regional['de'], {
                                                                                
 dateFormat: 'm.d.yy',
                                                                                
 duration: "fast",
                                                                                
 showOn: 'both',
                                                                                
 buttonImage:cal.gif',
                                                                                
 buttonImageOnly: true
                                                                                
 }));

        });

Daniel

Reply via email to