Just do it the old-fashioned way...

    var objImage = new Image();
    objImage.onload = function(){
        var imgDim = { width : objImage.width, height : objImage.height };
        // ...... carry on processing...
      };
    objImage.src = 'myPicture.jpg';



BAlex wrote:
> 
> 
> Is JavaScript:
> 
> var img = new Image();
> img.src = "1.jpg";
> var width = img.width;
> var height = img.height;
> 
> It is necessary for preliminary loading image and, the main thing, for
> preliminary definition width and height.
> 
> How same to represent on jQuery?
> 
> In advance thanks,
> Alexander
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Question-to-experts-on-jQuery.-tf4554472s27240.html#a13028446
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to