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

Re: [ydn-javascript] Re: Suscribe Events In A DataTable

Expand Messages
  • Satyam
    ... See: http://developer.yahoo.com/yui/event/#customsubscribe ... Right. In your example, you accessed property id in object data (data.id) so I showed how
    Message 1 of 10 , Jul 31, 2008
    • 0 Attachment
      soccerdudemulder wrote:
      > You said to remove the 3 and 4th args from the listener. Could you
      > point to this line? From reading the API, it seemed as it needed to
      > have 5 args.
      See:

      http://developer.yahoo.com/yui/event/#customsubscribe

      > The whole o/0 issue is because the text editor
      > interpreted it incorrectly. What is id when calling getData? It must
      > be some part of the row I clicked on right?
      >
      Right. In your example, you accessed property id in object data
      (data.id) so I showed how to get that same value using getData. Any
      column key name would do just as well.
      > New code:
      >
      > var onRowSelect = function()
      > {
      > var oRecord;
      > alert(oRecord.getData('id'));
      >
      > }
      > this.myTable.subscribe("rowDblclickEvent" ,onRowSelect());
      >
      >
      > Thanks.
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      > No virus found in this incoming message.
      > Checked by AVG - http://www.avg.com
      > Version: 8.0.138 / Virus Database: 270.5.6/1579 - Release Date: 29/07/2008 6:43
      >
      >
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.