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

onClick event causes scrolling

Expand Messages
  • hot
    Hello, I have a long form (not by choice) that scrolls to the top when a pop-up calendar link is clicked. I was hoping that someone might spot an easy fix for
    Message 1 of 1 , Jun 3, 2008
    • 0 Attachment
      Hello, I have a long form (not by choice) that scrolls to the top when
      a pop-up calendar link is clicked. I was hoping that someone might
      spot an easy fix for me. Thanks. Here is my code thus far:


      YAHOO.namespace("example.calendar");

      YAHOO.example.calendar.cal1 = new
      YAHOO.widget.Calendar("cal1","cal1Container",{mindate:"1/1/2006",maxdate:"12/31/2008"});


      YAHOO.example.calendar.cal1.selectEvent.subscribe(handleSelect,YAHOO.example.calendar.cal1,true);


      YAHOO.util.Event.addListener("datePicker", "click",
      YAHOO.example.calendar.cal1.show, YAHOO.example.calendar.cal1, true);

      YAHOO.example.calendar.cal1.render();
      YAHOO.example.calendar.cal1.hide();
    Your message has been successfully submitted and would be delivered to recipients shortly.