javascript - How to catch element and all its subelements fully rendered event -
about 1 day i'm trying figure out how catch event of html element loaded , rendered.
i tried everything, binding on load, ready, etc. far came state catch event when html visible on page but, not rendered.
what "fully rendered" mean? have <div> contains table filed controllers' variables. there text in these variables. when text long, <div> element grows in height when text appear in <div>. , based on divs' height set elements fixed position. basically, want catch moment, when particular <div> let id="mydiv" shown of its' content , not change time, can use information its' size , position further use.
is somehow possible catch event when <div> , its' subelements rendered on page?
note: <div> placed in partial html loaded <div ui-view></div> in html file.
you can used settimeout method after div content load below
$("document").ready(function() { settimeout(function() { $("ul.galleria li:first-child img").trigger('click'); },10); });
Comments
Post a Comment