Adding event listeners to metro style grid application RRS feed

  • Question

  • I have just created a sample grid application using html5 and JavaScript..

    What now i want to achieve is i want to give some animation when user click on group header.

    For that i wrote two functions .. one fore mousedown event and one for mouse up event

    function animateDown() {
    function animateUp() {

    Now i want add these funtions to event listeners ..

    I dont know how to add.. the problem is there are many groups header..i dpont have any id for that.. just have class...

    so how can i add eventlistener ..and from where i can add ...

    every time when i tried to add the container element always having winjs decelerations. . 


    • Edited by shameerpv Tuesday, February 28, 2012 12:32 PM
    Tuesday, February 28, 2012 12:03 PM


All replies