JQuery.load breaks other javascript -


when use jquery.load, breaks other javascript libraries. receive error:

typeerror: $.dotimeout not function 

when not use jquery.load it, works fine.

i don't understand causes happen. seems couldn't find function javascript file 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 library

test1.js uses library fancy stuff

please help

it looks when include test.aspx, copy of jquery.js being included overrides existing version, causing plugins lost (they on previous version, not on 1 added test.aspx).

either remove jquery.js test.asmx, or add selector .load filter results.

$(".test").load("/test.aspx?param=" + somevalue + " #targetdivtoload"); 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -