Loading ...
Sorry, an error occurred while loading the content.

Re: DDProxy has bug in IE6

Expand Messages
  • jingceawlin
    Hi Darek Your fix only gets rid of the text selection side effect. The performance still sucks. Sorry I didn t notice before. Finally I got the ultimate fix
    Message 1 of 6 , Nov 28, 2007
    • 0 Attachment
      Hi Darek
      Your fix only gets rid of the text selection side effect. The
      performance still sucks. Sorry I didn't notice before.

      Finally I got the ultimate fix :). Just cover the iframe with another
      element. Here is the fix

      (function() {
      var Dom = YAHOO.util.Dom;

      //Only needed for Internet Explorer 6
      if (YAHOO.env.ua.ie) {
      YAHOO.util.DDProxy.prototype._createFrame =
      YAHOO.util.DDProxy.prototype.createFrame;
      YAHOO.util.DDProxy.prototype.createFrame = function() {
      this._createFrame.apply(this, arguments);
      var div = this.getDragEl();

      var ifr = document.createElement('iframe');
      ifr.setAttribute('src', 'javascript:false;');
      ifr.setAttribute('scrolling', 'no');
      ifr.setAttribute('frameborder', '0');
      Dom.setStyle(ifr, 'height', '100%');
      Dom.setStyle(ifr, 'width', '100%');
      Dom.setStyle(ifr, 'position', 'absolute');
      Dom.setStyle(ifr, 'top', '0');
      Dom.setStyle(ifr, 'left', '0');
      Dom.setStyle(ifr, 'opacity', '0');
      Dom.setStyle(ifr, 'zIndex', '-1');
      Dom.setStyle(ifr.nextSibling, 'zIndex', '2');

      div.insertBefore(ifr, div.firstChild);

      var idiv = document.createElement('div');
      Dom.setStyle(idiv, 'height', '100%');
      Dom.setStyle(idiv, 'width', '100%');
      Dom.setStyle(idiv, 'position', 'absolute');
      Dom.setStyle(idiv, 'top', '0');
      Dom.setStyle(idiv, 'left', '0');

      div.insertBefore(idiv, div.firstChild);
      };
      }
      })();


      Cheers.
    Your message has been successfully submitted and would be delivered to recipients shortly.