Bug Tracker

Modify

Ticket #1877 (closed bug: invalid)

Opened 6 years ago

Last modified 6 years ago

$.get in IE6

Reported by: shatrov Owned by:
Priority: critical Milestone: 1.2.2
Component: ajax Version: 1.2.1
Keywords: Cc:
Blocking: Blocked by:

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());
    }
  );
});

Change History

comment:1 in reply to: ↑ description Changed 6 years ago by shatrov

Sorry, it`s my bug!

I add this code in item.php and all work true:

<?php if($_GETbrowser?=="ie"){

header("Content-type: text/xml");

} else{

header("Content-type: application/xhtml+xml");

} ?>

comment:2 Changed 6 years ago by Bradley

  • Status changed from new to closed
  • Resolution set to invalid

Submitter asserts this is not a bug. Marking invalid. Repost if necessary.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.