search for: objalertoverlay

Displaying 1 result from an estimated 1 matches for "objalertoverlay".

2006 Feb 03
4
Anonymous function variable scope issue
...'''; var notifyOutEffect = ''''; var notifyIdPrefix = ''''; The only reason these exist is because of variable scope issues. If you look at Notify.Alert.draw() you''ll see that I am using them in an anonymous function for an onClick event: objAlertOverlay.onclick = function () {eval ("new "+notifyOutEffect+ " (''"+notifyIdPrefix+"''+ ''AlertOverlay'');"); return false;} What I wanted was this (using the values inside the object, not the globally defined ones): objAlertOverlay.onclic...