javascript - Uncaught TypeError: Cannot read property 'msie' of undefined is the error -
i keep getting
uncaught typeerror: cannot read property 'msie' of undefined
when try console log view couchdb. i'm new coding , don't know error means. when use ajax call same thing works , pulls view couch database. school need couch call working. help.
html:
<html> <head> <title>sk8 teams</title> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="css/jquery.mobile.flatui.css"/> <script src="jquery-1.9.1.min.js"></script> <script src="jquery.mobile-1.3.2.min.js"></script> <link rel="stylesheet" href="style/main.css"/> </head> <body> <section data-role="page" id="home" data-theme="c"> <section data-role="header" data-position="fixed"> <h1>home</h1> </section> <section data-role="content" class="ui-body-c"> <ul id="homeitems" data-role="listview"> </ul> </section> </section> <script src="jquery.couch.js"></script> <script src="my.js" type="text/javascript"></script> </body>
javascript:
$(document).on('pageinit', '#home', function () { $.couch.db("sk8team").view("app/company", { success: function (data) { console.log(data); } }); });
did little more research, issues couch not compatible jquery 1.9, try older version of jquery or using browser support plugin.
Comments
Post a Comment