Side navigation
#1877 closed bug (invalid)
Opened November 01, 2007 02:10PM UTC
Closed November 06, 2007 04:11AM UTC
$.get in IE6
Reported by: | shatrov | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | 1.2.2 |
Component: | ajax | Version: | 1.2.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
this code don`t working in IE6 (in FF and Opera - ok)
$(function(){ $.get("/mod/catalog/item.php?item_id="+id, {type: "xml"}, function onAjaxSuccess(xml){ alert("Data Loaded: " + $("title", xml).text()); } ); });
Sorry, it`s my bug!
I add this code in item.php and all work true:
<?php
if($_GET["browser"]=="ie"){
header("Content-type: text/xml");
}
else{
header("Content-type: application/xhtml+xml");
}
?>