Skip to main content

Bug Tracker

Side navigation

#5802 closed bug (worksforme)

Opened January 14, 2010 03:24PM UTC

Closed November 01, 2010 05:29AM UTC

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;

Attachments (0)
Change History (1)

Changed November 01, 2010 05:29AM UTC by snover comment:1

resolution: → worksforme
status: newclosed