Side navigation
#2201 closed bug (worksforme)
Opened January 21, 2008 01:04PM UTC
Closed January 25, 2008 11:21PM UTC
$.get() in IE6 & IE7
| Reported by: | MWK | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2.3 |
| Component: | ajax | Version: | 1.2.2 |
| Keywords: | Ajax $.get() | Cc: | |
| Blocked by: | Blocking: |
Description
I encounter problems with the $.get() method in IE. in FF everything seems to be fine.
Testfile
<!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">
<head>
<!--meta -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
<script type="application/javascript" src="jquery.js"></script>
</head>
<body>
<div id="trace">
</div>
<script type="text/javascript">
<!--
$(document).ready(function()
{
$.get("replyget.test.php5", {id:'Hola'}, function(html)
{
//alert(html);
$('#trace').html(html);
});
});
//-->
</script>
</body>
</html>
reply file
<?php
echo "Relpy<br />";
echo ('<pre>');
print_r($_REQUEST);
echo ('</pre>');
?>
In IE nothing happens. It keeps the page blank.
In FF everything works fine.
Attachments (0)
Change History (1)
Changed January 25, 2008 11:21PM UTC by comment:1
| component: | core → ajax |
|---|---|
| resolution: | → worksforme |
| status: | new → closed |
I didn't know this either, but apparently IE doesn't like type="application/javascript".
Changing the jquery.js line to
<script type="text/javascript" src="jquery.js"></script>
fixed the test case for me.