javascript - Height of div after appending elements via ajax -
I call an AJAX call to recover some json and this data has been added to div #example, and I Want to get it to the height of #example ($) using the $ example ('# instance') If I get the height now, then all the items can not be added yet, I am trying to achieve the height within the segment of the success of AJAX calls at the end of the enzending loops, but the aping action is not yet complete Because because I'm getting less than expected, what is the most favorable way of action to get the height of the #example?
Do you try to achieve the height of success of AJAX calls?
$ Ajax ({url: '/ example', datatype: 'jason', success: work (data) {$ ('height ();}, complete: function (data) {$ (' # example '). ;}}); If it still does not work, then make sure to use a settime of 500 milliseconds for $ ('# example') populated Try it. I have also heard about "full" Ultimate for Ajax.
Comments
Post a Comment