Old functions return 'undefined' error once I add a jquery reference
Posted
by Lapa
on Stack Overflow
See other posts from Stack Overflow
or by Lapa
Published on 2010-04-06T10:33:30Z
Indexed on
2010/04/06
10:53 UTC
Read the original article
Hit count: 158
Disregard this question: I've simply confused <script src="..."></script>
tag and <script> [some functions] </scipt>
tags.
I have this function
function OnLoad()
{
ShowHideConfirmAnswers();
return true;
}
triggered by onload event:
<body onload=OnLoad()>
It works fine until I add src="jquery-1.4.2.js" to the script element. From this moment I get "OnLoad is not defined" error, and the same happens to every other javascript function.
© Stack Overflow or respective owner