Friday, March 27, 2009

Fix for IE 6.0

Quick post related to my last one... turns out IE 6.0 doesn't read the "onclick" attribute as an "onclick" event, so the call was failing when we evaluated the original event. IE 6.0 likes to call the function "anonymous," so the following code handles that case:

eval(window.criteria_postback + 
   ";try{onclick(window.criteria_event);}catch(e){anonymous();}");