JQuery has a .load () function
it is triggered by the ready () event, and elements loaded with ajax are no longer covered (
there is a way out

$(document).on('название события','элемент', function(){ //здесь код }); 

but there you can insert click , submit , etc ... all except load . how to solve a problem? I found a plugin for jQuery, which gives the function the code inside which is triggered when the item is loaded, but again with onDomReady. example:

 $('img').bindImageLoad(function(){ alert('загрузилось!'); }); 

so what it is: is it possible to make a construction

 $(document).on($('img').bindImageLoad(function(){ alert('загрузилось!'); }); }); 

I will be glad to accept all solutions or suggestions.

  • I did not answer you already? you take all the pictures in the received items for which property complete === false, and hang them one ("load", function ()) ;, those that you already complete the complete processing - zb
  • @eicto please hang out exactly what you wanted to say - igolka97

1 answer 1

Maybe I misunderstood .... You want to perform actions on completing the loading of data on ajax, for example in a div ... Then we get:

 $('#myDiv').load('ololo.com',function(e){ //код... }) 

Similar to $ .post, $ .get and $ .ajax