search for: alertoverlay

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

2006 Feb 03
4
Anonymous function variable scope issue
...9;''; 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...