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

OverlayManager and register()

Expand Messages
  • markus espenhain
    hi i m trying to register a Panel on a OverlayManger ... without success var olmgr = new YAHOO.widget.OverlayManager(); var p = new
    Message 1 of 1 , May 31, 2007
    • 0 Attachment
      hi

      i'm trying to register a Panel on a OverlayManger ... without success

      var olmgr = new YAHOO.widget.OverlayManager();
      var p = new YAHOO.widget.Panel('test_panel');
      p.setHeader('asd');
      p.setBody('dsa');
      p.render(document.body);
      console.log('olmgr.register:', this.olmgr.register(p));
      // prints: olmgr.register: false

      p instanceof YAHOO.widget.Overlay returns also false

      the same code as above with
      var p = new YAHOO.widget.Overlay('test_panel');
      works as expected

      any hint or ideas?

      thanks
      markus

      i'm using yui 2.2.2
    Your message has been successfully submitted and would be delivered to recipients shortly.