Teensweb
New Member
- Messages
- 352
- Reaction score
- 1
- Points
- 0
Hi everyone,
I have been really annoyed by this irritating bug with internet explorer and jquery.
So here's the story:
I have an html page with jquery (v 1.5) on it and as usual, everything works like charm in heavenly browsers like ff and chrome. But in IE, the problem is really strange! The page reports error onload and when I view the error window it says "document.body is null or not an object"
and some of my jquery pluggins fail to work correctly, furthermore, the error disappears when I refresh the page! I googled about this and found that similar bugs where reported by others but I could never actually find a solution
Here's my html for reference:
I have been really annoyed by this irritating bug with internet explorer and jquery.
So here's the story:
I have an html page with jquery (v 1.5) on it and as usual, everything works like charm in heavenly browsers like ff and chrome. But in IE, the problem is really strange! The page reports error onload and when I view the error window it says "document.body is null or not an object"
and some of my jquery pluggins fail to work correctly, furthermore, the error disappears when I refresh the page! I googled about this and found that similar bugs where reported by others but I could never actually find a solution
Here's my html for reference:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="Stylesheet" type="text/css" media="screen" href="Styles/Template.css">
<link rel="Stylesheet" type="text/css" media="screen" href="Styles/pluggins.css">
<script type="text/javascript" src="inc/jquery.js"></script>
<script type="text/javascript" src="inc/jquery.metadata.js"></script>
<script type="text/javascript" src="inc/jquery-ui.min.js"></script>
<script type="text/javascript" src="inc/lavalamp.js"></script>
<script type="text/javascript">
$(function(){
// some function
});
</script>
<title></title>
</head>
<body>
<div id="layout">
<div id="leftpane">
<div class="panetop"></div>
<div class="ext">
</div>
<div class="panefoot"></div>
</div>
<div id="rightpane"style="right:0px">
<div class="panetop"></div>
<div class="ext">
</div>
</div>
<div class="panefoot"></div>
</div>
<br>
<br>
</div>
</body>
</html>
Last edited: