javascript - upgrading to jquery -1.10.2.min.js disturbs UI of Phonegap App android and gives error Uncaught RangeError: Maximum call stack size exceeded -


i upgraded cordova 2.9.0.js , jar file,jquery-1.10.2.min.js,jquery-mobile-1.4.0.css , .js , here how added jqm,jquery in script tags:

 <link rel="stylesheet" href="css/app/app-style.css"/>      <link rel="stylesheet" href="css/lib/jquery.mobile.theme-1.4.0-alpha.2.min.css" />      <link rel="stylesheet" href="css/lib/jquery.mobile.structure-1.4.0-alpha.2.min.css"/>      <link rel="stylesheet" href="css/lib/jquery.mobile.theme-1.4.0-alpha.2.min.css"/>      <link rel="stylesheet" href="css/lib/simpledialog.min.css"/>      <link href="css/lib/mobiscroll.css" rel="stylesheet" type="text/css"/>      <script src="js/lib/jquery-1.10.2.min.js"></script> <script src="js/lib/jquery.mobile-1.4.0-alpha.2.min.js"></script> <script type="text/javascript" src="js/lib/jqm.page.params.js"></script>      <script type="text/javascript" charset="utf-8" src="js/lib/cordova.js"></script>      <script src="js/lib/simpledialog2.js"></script> <script src="js/lib/jsignature.min.js"></script>      <script src="js/lib/jq-dateformat.js"></script>      <script src="js/lib/mobiscroll.js" type="text/javascript"></script>      <script src="js/lib/jquery.autosize.js" type="text/javascript"></script>      <script src="js/lib/fastclick.js"></script> 

my problem when trying deploy app first time working fine ui , fine in samsung galaxy s3 android 4.2 deploy first time image

but when trying run 2nd time eclipse layout disturbs button color changed why happening? running 2nd time image

and m getting error in console: **09-04 22:51:33.459: d/cordovalog(26299): file:///android_asset/www/js/lib/jquery-1.10.2.min.js: line 5 : uncaught rangeerror: maximum call stack size exceeded

** while if removing app device , deploying again works fine. using cordova-2.7.0 , jquery-1.7.2.js , jquery-mobile-1.1.1.min.js , css.but did nt see such type of problem.


you must put jquery migrate plugin when upgrade jquery in project...

you can download jquery migrate plugin here. , give reference in project

like

<script src="js/lib/jquery-1.10.2.min.js"></script> <script src="js/lib/jquery-migrate-1.2.1.min.js"></script> 

hope problem solve this..


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -