Ok, after quite a bit of searching and reading I found a fix for the
whole datepicker + nyromodal (or any popup for that matter) on all
browsers EXCEPT IE.

Basically, I walk the parent tree of the control I'm on until I find
an element with a z-index > 0.  Then I set the z-index of my
datepicker to that z-index + 1.  This works great for all the popup's
I've tried in all browsers EXCEPT IE.  In IE it doesn't matter what I
set the z-index to the datepicker never shows up :(.

Anyone have any ideas on how to fix this?  I've been looking for days
now and I'm sorry to say I can't find it.

$(document).ready(function(){
  $(".datepicker").datepicker({beforeShow: function (i, e) {
      w = $(i);
      while(w&&(w.css('z-index')<=0)){
        w = w.parent();
      }
      if(w){
        w.append(e);
        e.dpDiv.css('z-index', w.css('z-index')+1);
      }else $(document).append(e);
    }
  });
});

 - Jeremy

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to