I am using C# .net (razor, mvc3) and the Jquery Plugin Uploadify, but I have a problem to get the height and the width from my uploaded image.
Here the part where I want them : (I use Uploadify and onComplete to show the image)
'onComplete': function (event, ID, fileObj, response) {
if (response == "OK") {
$("#DivImg").addClass("loading");
var htmlString = "<img id='Image' src=\"../../uploads/" + fileObj.name + "\" alt=\"" + fileObj.name + "\" />";
$("#DivImg").html(htmlString);
//I would like to get height just here but $("#Image").height give me 0
instead of using :
try using:
but be aware that the image needs to load first, before you can actually get its height attribute.