Results 1 to 2 of 2
  1.    #1  
    I'm sure i'm being lame here, but i need to detect a tap event on 36 elements on the screen, then pass the number of the element to the event handler:

    this is what i have:

    webos private pastebin - collaborative debugging tool

    this works (it detects the tap events on my elements) but how can I pass the value of "i" to the handler? i have tried everything I can think of and not having much luck with google so please help if you can.

    Alternatively can I get the DOM element ID from the "event" object somehow?

  2.    #2  
    nevermind, i found the answer here: Prototype JavaScript framework: Function.bind

    looks like i can pass arguments and grab them from the $A(arguments) array.

Posting Permissions