Bug Tracker

Opened 14 years ago

Closed 13 years ago

#5802 closed bug (worksforme)

Load function error

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

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 (1)

comment:1 Changed 13 years ago by snover

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.