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

Re: Panel Problems

Expand Messages
  • netrix37
    Ken, Just wanted to say that worked great. Thanks! Rob
    Message 1 of 4 , Aug 30, 2006
    View Source
    • 0 Attachment
      Ken,

      Just wanted to say that worked great. Thanks!

      Rob


      --- In ydn-javascript@yahoogroups.com, Ken Robinson <kenrbnsn@...> wrote:
      >
      > At 06:00 PM 8/25/2006, netrix37 wrote:
      > >I've got panel setup on one of my websites as follows:
      > >
      > > YAHOO.myPanel = new YAHOO.widget.Panel("myPanel", {
      > >width:"300px", fixedcenter: true, constraintoviewport: true,
      > >underlay:"shadow", close:true, visible:false, draggable:true } );
      > > YAHOO.myPanel.setHeader("Status");
      > > YAHOO.myPanel.setBody("Message Status: " + sMessage);
      > > YAHOO.myPanel.cfg.setProperty('underlay','matte');
      > > YAHOO.myPanel.render();
      > > YAHOO.myPanel.show();
      > > document.getElementById('frmContactUs').reset()
      > >
      > >Now everything works great until you close out the panel and decide
      > >you want to submit again. Think of somebody sending a email and
      > >forgetting something and then going to resend it. This second time
      > >through it's like the panel jumps to the lower right corner and if you
      > >scroll down so does the panel. Really strange. The panel is
      > >basically within a function that gets called when a button is clicked.
      > > I confirmed that the yahoo demo works but can't figure out what I'm
      > >missing.
      >
      > I've had this bother me also until I figured out that you only create
      > the panel once then keep on reusing it. Move the create outside the
      > function and make sure it's global in nature.
      >
      > Ken
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.