internet explorer 8 - jQuery error in IE8 - $ undefined -
i have looked through answers , still don't know why error.
here html code @ top of page:
<!doctype html> <html lang="en-us"> <head> <meta charset="utf-8" /> <meta name="description" content="" /> <meta name="keywords" content="" /> <title>magi in box - login</title> <link href="css/main.css" rel="stylesheet" type="text/css" media="all" /> <link href="css/grids.css" rel="stylesheet" type="text/css" media="all" /> <link href="css/misc.css" rel="stylesheet" type="text/css" media="all" /> <link href="css/tables/demo_table_jui.css" rel="stylesheet" type="text/css" media="all" /> <link href="css/tables/jquery-ui-1.8.4.custom.css" rel="stylesheet" type="text/css" media="all" /> <script type="text/javascript" src="js/table_pagination.js"></script> <!--start style specific project --> <link href="css/magi.css" rel="stylesheet" type="text/css" media="all" /> <!--start style specific project --> <!-- add datepicker stylesheet --> <link href="css/datepicker.css" rel="stylesheet" type="text/css" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> <script src="js/jquery-ui.js" type="text/javascript"></script> <script> function setfocus() { var input = document.getelementbyid("user_email"); input.focus(); } </script> </head>
the jquery defined before rest of script, yet these 3 errors:
message: 'jquery' undefined line: 6char: 1code: 0uri: https://demoapp01.smartstream.cognosante.com/magidataentry/js/jquery-ui.jsmessage: '$' undefinedline: 9char: 1code: 0uri: https://demoapp01.smartstream.cognosante.com/magidataentry/js/jquery.collapsible.jsmessage: object expectedline: 3char: 1code: 0uri: https://demoapp01.smartstream.cognosante.com/magidataentry/js/example.js
if jquery declared, why still getting these errors?
this first time posting, hope got formatting correct!
i noticed error access website using https:
, load jquery using http:
. may cause problems. best way load jquery this:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
Comments
Post a Comment