[jQuery] Re: imageAreaSelect bug

2008-06-19 Thread webmotionuk


Try this instead:

$(document).ready(function(){
   $('#asdf').slideDown('slow');
   $('#asdf img').imgAreaSelect({ maxWidth: 20, maxHeight: 20 });
});

The imageareaselect will be called after the image is loaded, You could even
put this into a click function as follows:

$(document).ready(function(){
$('#button').click(function() {
$('#asdf').slideDown('slow');
$('#asdf img').imgAreaSelect({ maxWidth: 20, maxHeight: 
20 });
});
});

Let us know how you get on.
http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/
http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/ 
-- 
View this message in context: 
http://www.nabble.com/imageAreaSelect-bug-tp17861390s27240p17881550.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: imageAreaSelect bug

2008-06-17 Thread webmotionuk

Try this instead:

$(document).ready(function(){
   $('#asdf').slideDown('slow');
   $('#asdf img').imgAreaSelect({ maxWidth: 20, maxHeight:
20 });
});

The imageareaselect will be called after the image is loaded, You
could even put this into a click function as follows:

$(document).ready(function(){
$('#button').click(function() {
$('#asdf').slideDown('slow');
$('#asdf img').imgAreaSelect({ maxWidth: 20,
maxHeight: 20 });
});
});

Let us know how you get on.
http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/