asp.net mvc - Conflict in jQuery with Active Reports -


currently using jquery 1.10.2 in project. @ 1 page need show reports active report 9.

the problem is loading jquery 1.7.2. tried resolve conflict using var jq17= $.noconflict(true); changes alias $ jq17.

now necessary change aliases in .jq libraries loading active report 9 use jq17 new alias ? or there other way go ahead without changing libraries.

update: have tried answer @andreas. solved alias issue. functions of active report not accessible through this.

load 1.7.2 version , call .noconflict(true) before loading version 1.10.2 (or vice versa if easier way), wrap 1.7.2 dependent code in anonymous function , pass noconflict version alias $

<script type="text/javascript" src="jquery-1.7.2.js"></script> <script>     var jq172 = $.noconflict(true); </script> <script type="text/javascript" src="jquery-1.10.2.js"></script> <script>     (function($) {         console.log($.fn.jquery);  // -> 1.7.2     }(jq172));      console.log($.fn.jquery);  // -> 1.10.2 </script> 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -