jquery/javascript detect when object has been resized

Hi I have a flash object that the user can re-size (with in the flash)  problem is the i have it in a div container that does not re-size.

I there a way to detect when the flash object it re-sized and then re-size the surrounding div ?

<object width="768" height="640" type="application/x-shockwave-flash" id="movie" name="movie" data="/movie.swf" style=""></object>

The width and height changes when the resize is clicked in the flash

In the div i have overflow:none; setting it to overflow:auto; add the scroll bar but i would rather the div just resize...

Thanks in advance
doctor069Asked:
Who is Participating?
 
VampireofdarknessConnect With a Mentor Commented:
I believe my answer, ID 35501642, answers this question. The answer is no, and reasons are given.

Question: I there a way to detect when the flash object it re-sized and then re-size the surrounding div ?

My Answer: HTML's onresize doesn't work unless you manually resize the element (ie- with your mouse, it doesn't fire on JS events).
jQuery's .resize() doesn't fire.
jQuery UI's .resizable() doesn't appear to work on objects, and even on DIV it needs to be manually resized.

I think you may be out of luck. Why do you need to resize the div? Is it just a container?

0
 
VampireofdarknessCommented:
Have you tried giving the object an id, and attaching it to a resize()? The function call could be to resize the div based on object.width() and object.height()

http://api.jquery.com/resize/
0
 
doctor069Author Commented:
tried that but does not seem to work...
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
doctor069Author Commented:
movie is the id of the object

 $('#movie').resize(function() {
               alert('movie');
           });
0
 
VampireofdarknessCommented:
HTML's onresize doesn't work unless you manually resize the element (ie- with your mouse, it doesn't fire on JS events).
jQuery's .resize() doesn't fire.
jQuery UI's .resizable() doesn't appear to work on objects, and even on DIV it needs to be manually resized.

I think you may be out of luck. Why do you need to resize the div? Is it just a container?
0
 
Kusala WijayasenaSoftware EngineerCommented:
Could you please post the link to your re-sizable flash ? (just look and see what happing while resizing ....)

-Kusala
0
 
doctor069Author Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for doctor069's comment http:/Q_26987991.html#35501552

for the following reason:

Not able to resize an object. Not possible
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.