mjmetzger
02-24-2008, 10:45 PM
Hey all,
I'm lost. I've got a project using Prototype 1.6.0 that works works great in firefox and even friggin' Safari 3 for Windows, but for some strange reason it will not work in Internet Explorer (IE7 specifically). I've stripped my code down to the core and realized I can't even get a basic Hello World example to work in IE.
Assume we have a really lame hello world site that contains default.htm, hello.htm, and prototype.js (inside a folder named 'js'). On this site we have a link with a mouseover event that makes a request to hello.htm and puts the response inside of the 'ResponseContainer' div. Sounds simple enough... Here's what I've got.
default.htm:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/prototype.js"></script>
</head>
<body>
<a href="#"
onmouseover="new Ajax.Updater(
'ResponseContainer',
'hello.htm',
{method:'get'});">Say Hello</a>
<div id="ResponseContainer"></div>
</body>
</html>
And Only Because I am completely lost I will include the hello.htm code:
hello.htm:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/prototype.js"></script>
</head>
<body>
<p>hello</p>
</body>
</html>
Any help would be appreciated. I feel so stupid.
I'm lost. I've got a project using Prototype 1.6.0 that works works great in firefox and even friggin' Safari 3 for Windows, but for some strange reason it will not work in Internet Explorer (IE7 specifically). I've stripped my code down to the core and realized I can't even get a basic Hello World example to work in IE.
Assume we have a really lame hello world site that contains default.htm, hello.htm, and prototype.js (inside a folder named 'js'). On this site we have a link with a mouseover event that makes a request to hello.htm and puts the response inside of the 'ResponseContainer' div. Sounds simple enough... Here's what I've got.
default.htm:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/prototype.js"></script>
</head>
<body>
<a href="#"
onmouseover="new Ajax.Updater(
'ResponseContainer',
'hello.htm',
{method:'get'});">Say Hello</a>
<div id="ResponseContainer"></div>
</body>
</html>
And Only Because I am completely lost I will include the hello.htm code:
hello.htm:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/prototype.js"></script>
</head>
<body>
<p>hello</p>
</body>
</html>
Any help would be appreciated. I feel so stupid.