JQuery conflict with body onload event.
Posted
by Evgeny
on Stack Overflow
See other posts from Stack Overflow
or by Evgeny
Published on 2010-05-19T10:09:29Z
Indexed on
2010/05/19
10:20 UTC
Read the original article
Hit count: 197
Strange conflict in my code. I have function that called from body onload:
var someGlobalVar=new SpecialType();
function OnBodyLoad()
{
someGlobalVar.Bind();
}
but when i include JQuery 1.4.2 to my project i have error that someGlobalVar is undefined. Why global variable now is undefined and what ways to fix it?
© Stack Overflow or respective owner