Bug Tracker

Ticket #5802 (closed bug: worksforme)

Opened 5 years ago

Last modified 4 years ago

Load function error

Reported by: bru.hf Owned by:
Priority: major Milestone:
Component: ajax Version: 1.3.2
Keywords: load, function, ajax Cc:
Blocking: Blocked by:

Description

the code below does not work in IE8:

$('#centro #linha1 #coluna2').load("index.php/"+_page, {}, function(){ alert('teste'); });

but this code works in all browsers:

$('#coluna2',$('#linha1',$('#centro'))).load("index.php/"+_page, {}, function(){ alert('teste'); });

I concluded that the selectors are the problem, see the tests:

alert($('#centro>#linha1>#coluna2').size()); IE8 return 0; FIREFOX,OPERA return 1; alert($('#centro > #linha1 > #coluna2').size()); IE8 return 0; FIREFOX,OPERA return 1; alert($('#centro #linha1 #coluna2').size()); IE8 return 0; FIREFOX,OPERA return 1;

but this works:

alert($('#coluna2',$('#linha1',$('#centro'))).size()); IE8 return 1; FIREFOX,OPERA return 1;

Change History

comment:1 Changed 4 years ago by snover

  • Status changed from new to closed
  • Resolution set to worksforme
Note: See TracTickets for help on using tickets.