I have some dynamic images inserted into my body with php and I need to get their height in order to position them properly. the issue is that jQuery will get me the height or width of each image except in explorer, for example:
HTML:
<img src="someimage.jpg" id="img_id" />
Jquery
alert($('#img_id').height())
In firefox it will automatically read from the image file the height and return the value, lets say 400px;
But in explorer it will return empty! It will only return a value if there is a height written on HTML or CSS:
<img src="someimage.jpg" id="img_id" style="height:400px" />
First, why explorer won't fetch the dimensions of the image, and second how can I fix this problem without generating the image styling for each image? Thanks