javascript addEventListener

Jul 10, 2009 at 5:43 PM
We have inherited an application which is using an old version of the API (1.2) and are trying to add listeners on the click events in the update panel to show a spinning gif.  When the page first loads the click events are bound along with the AJAX rewriter click code.  But once a update panel action takes place the second (spinning gif) click action is no longer bound.   We are binding the actions with the JavaScript below to inputs on a repeater in an update panel:
  
Questions:
 
Does the 2.0 tool kit make this easier and work able? 
Is there a way to make this work with the 1.2 tool kit?
Also with IE as the browser the addEventListener seems to kill the AJAX rewriter JS onclick.
It also seems like Facebook is over loading the addEventListener with FBJS:  http://wiki.developers.facebook.com/index.php/FBJS
Thank you!
 
 
 
 
//a.powell 7.9.2009
function displayClicked()
{
    var theDiv = document.getElementById('NeighborhoodWallPost_processingDivDisplay');
    theDiv.setStyle({visibility: 'visible'});
}
 
//this is to add immediate onclick listeners to the panel and post buttons
function loadProcessingMessage()
{
 
    var thebod = document.getElementById("theBody");
    var formInputs = thebod.getElementsByTagName('input');
    for (var i = 0; i < formInputs.length; i++)
    {
        var theLen = thebod.getElementsByTagName("input")[i].getValue().length ;
        if ( theLen < 25)  //this is so the view state doesn't get a click event bound
        {
            var theInput = thebod.getElementsByTagName("input")[i];
            if (theInput.addEventListener){
                theInput.addEventListener("click", displayClicked);
            }
            /*if (theInput.attachEvent) {
                theInput.attachEvent("onclick", displayClicked);
            }  */
 
        }
    }
}
 
 
 
 
Questions:
 
Does the 2.0 tool kit make this easier and work able? 
Is there a way to make this work with the 1.2 tool kit?
Also with IE as the browser the addEventListener seems to kill the AJAX rewritter JS onclick.