Ajax.Updater doesn't work with IE6 properly

0 views
Skip to first unread message

justin

unread,
Sep 29, 2007, 2:57:30 AM9/29/07
to Ruby on Rails: Spinoffs
My environment is Apache2+php5. The test doc is "ajaxtest.php", which
uses Ajax.Updater to load content from /test/test1/inphp.php. It works
soomthly in Firefox. But nothing can be displayed in IE6, the brower
got no response and the onComplete was not trigered. However, if I put
the two doc under the same dir, everything goes well. Or, if I replace
the inphp.php with a html doc such as "inhtm.html" in /test/test1, the
Updater then can load the doc's content properly. Is there anyone
having encountered such problem?

Previously, I use Apache1.3+php4.3. Then, no such problem comes out.

Thanks.

//ajaxtest.php

<!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">
<HTML>
<HEAD>
<script type="text/javascript" src="prototype.js"></script>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /
>
<TITLE> New Document </TITLE>
</HEAD>
<body class="bg">

<div id="main" class="main"></div>

<script>
var myaj = new Ajax.Updater('main','http://address/test/test1/
inphp.php',{evalScripts:true,onComplete:function(req)
{alert(req.responseText);}});
</script>
</body>
</html>

Reply all
Reply to author
Forward
0 new messages