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

Unable to open a dialog on clicking a cell within the table

Expand Messages
  • Amit Mondal
    Hi, I need to open a dialog upon clicking a cell within a table. However the dialog never comes up. I defined a callback function myHandler , where I
    Message 1 of 1 , Oct 30, 2007
    • 0 Attachment
      Hi,
      I need to open a dialog upon clicking a cell within a table. However the dialog never comes up. I defined a callback function "myHandler", where I instantiated, rendered and showed the dialog box. Then I subscribed to the event and called the callback function on "cellClickEvent" event. But the dialog box does not come up on clicking the cell. Any pointers on where I might be going wrong.
       
       
      YAHOO.util.Event.addListener(window, "load", function() {
          YAHOO.example.Local_XML = new function() {
               .............................        
              this.myDataTable = new YAHOO.widget.DataTable......
       
              var myHandler = function(oArgs) {
             ......................
            YAHOO.example.container.dialog1 = new YAHOO.widget.Dialog("dialog1",
             ...........................
            YAHOO.example.container.dialog1.render();   //"example.container" is the namespace
            YAHOO.example.container.dialog1.show();
            };
                      this.myDataTable.subscribe("cellClickEvent", myHandler);
        
       
      Thanks,
      Amit.
           

      __________________________________________________
      Do You Yahoo!?
      Tired of spam? Yahoo! Mail has the best spam protection around
      http://mail.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.