When I use JQuery.load, it breaks my other JavaScript libraries. I receive this error:
TypeError: $.doTimeout is not a function
When I do not use jQuery.load it, works fine.
I don't understand causes this to happen. Seems like it couldn't find the function from the JavaScript file that is already rendered on source code.
Scripts
<script type="text/javascript" src="/assets/js/modernizr-1.7.min.js"></script>
<script type="text/javascript" src="/assets/js/jquery.tmpl.js"></script>
<script type="text/javascript" src="/assets/js/jquery.ba-dotimeout.js"></script>
<script type="text/javascript" src="/assets/js/test1.js"></script>
<script type="text/javascript" src="/assets/js/test2.js"></script>
Inside test1.js
$.doTimeout("hoverOut");
Inside test2.js
$(".test").load("/test.aspx?param=" + someValue);
jquery.ba-dotimeout.js is a library
test1.js uses that library to do its fancy stuff
Please help