Why? I have the same problem with image tag.
Call in progressready () callback. load () never starts.
Browser: Firefox3.6.8 on Mac
Edit:
I somehow feel like I am using load () incorrectly in jQuery. Documentation I mean: -
http://api.jquery.com/load-event/
I do
$ ("body"). load (function () {// do something});
Is that not so? I see how the code works: $ ("# ID") load ("./newpage.html"). But are these 2 different APIs?
Edit 2
Another code to explain my whole problem here: -
var tagString = "<img id='"+imageId+"'></img>";
this.divElem.append(tagString);
var imgElems = $("#"+imageId);
var vowels = this;
imgElems.each(function (index) {
$(this).attr('id',imgId).attr('src',imageUrl)
.attr('width',1).attr('height',1);
$(this).load(function() {
});
});
Work
$().ready(function() {
$().load(function() {
});
});
Does not work
$().load(function() {
});
Why? I am happy that this works. But I do not understand why!
-Ajay