I've "prototyped" prototype by hijacking the element.show and
element.hide functions like this:

[code]
Element.show = function(element,iframe) {
  iframe = iframe || false;
  if (iframe) {  Element.ieOverlap(element); }
  $(element).style.display = '';
  return element;
};

Element.hide = function(element) {
    $(element).style.display = 'none';
    if ($(element + "_iefix")) {
      Element.remove($(element + "_iefix")); }
    return element;
};

Element.ieOverlap = function(element) {
  var id = $(element).id;
  new Insertion.After(id, '<iframe id="' + id + '_iefix" '+
'style="display:none;position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);"
' + 'src="javascript:false;" frameborder="0" scrolling="no"></
iframe>');
  setTimeout(fixIEOverlapping, 1);

  function fixIEOverlapping() {
    var norm = $(element);
    var iefix = $(norm.id + "_iefix");
    Position.clone(norm, iefix);
    iefix.style.zIndex = (norm.style.zIndex - 1);
    iefix.show();
  }
};
[/code]

That works for 'static' overlays that I don't drag.  Any ideas for how
to handle a draggable?  My thoughts are to have some sort of callback
that attaches the shim to the cursor when the "onStart" event occurs
and detach it with the "onEnd" callback; but I'm not certain this is
the most elegant way to handle it.

Anyone?

TIA,
Jon


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to