[jQuery] Problem with load event

2010-02-23 Thread Hubbitus
I have simple document:

script
$(document).load(function(){
alert('Document loaded')}
);

$(document).ready(function(){
alert('Document ready')}
);

$(document).live('load', function(){
alert('Document loaded (live)')}
);
/script

But from 3 attached events on page load fired only one -
$(document).ready. I even can't imagine why :( .
Test page: http://ru.bir.ru/_/svg/jquery-test.htm
I've tested it in FireFox 3.6 and Google Chrome 5.0.322.2 dev.
Any sugestion?


[jQuery] Problem with .load

2008-07-02 Thread Eric Snyder

I have the following code:

$(document).ready(function(){
$(#FilterSubmit).click(function(){
var 
$pagename=http://www.agreatyouthmentoringorganization.net/includes/publicProfiles+$(#gender
 
option:selected).val()+$(#location option:selected).val();
$(#FilteredProfiles).html('img 
src=http://www.agreatyouthmentoringorganization.net/images/text-fetching 
data.gif alt=Fetching data');
$(#FilteredProfiles).load($pagename, {limit: 25}, function(data){
alert(data);
$(#FilteredProfiles).html(data);
});
});//End of the filterSubmit actions
});//end of ready function

It seems that I can get it to work only on the FF browser I am doing the 
dev work on. When I try it on any other FF or IE browser it fails. What 
happens is the loading data graphic gets displayed and it comes back 
with data and the alert fires but no data displays in the 
FilteredProfiles div.

I ahve looked and looked at this with no joy. Any help would be appreciated.