i have a function called g_checkStatus() that’s inside of an onclick attribute in a div tag. it works perfect in every browser except for IE. with IE i get an “Object Expected” error.
if i replace onclick=“g_checkStatus();” with onclick=“alert(‘testing’);” it works fine in IE. even if i strip the g_checkStatus function of everything and just simply have it trigger an alert() i get the “Object Expected” error, as well.
there’s gotta be something i’m missing, i just don’t know what IE is wanting me to do.
i will comment out everything in the function and just put alert(‘testing’); and it still gives me that error; so i don’t think it’s what’s inside that’s causing the issue. it seems IE is maybe not loading the function before it’s called, but the function is at the top of the page and you can’t activate the onclick event until it’s loaded on the page…so that doesn’t really make sense.