1 Reply Latest reply: Oct 16, 2009 12:45 AM by Arnout Kazemier RSS

    Spryelement selector -  pass parameters in attachEvent

    Phil_W Community Member

      Hi,

       

      Is it possible to attach an event you pass a parameter to via the spry element selector

       

      i.e.

       

      Spry.$$('td[class~="calcell"]').addEventListener("mouseover",mymouse(txt),false);
         
        
        function mymouse(txt)
        {
         alert('txt');
        }

       

      Below is just a test to see if I can get it working.  But essentially I wish to pass a row id to the function, so it can update a tooltip entry from Spry data, and then attach a tooltip to the selected cell.

       

      Cheers

       

      Phil