Resize Height of Object/Embed with jQuery? -


i have object/embed on page:

<object type="application/x-shockwave-flash" width="100%" height="{$height}" id="chat_shell"         data="js/8wayrun/irc/lightirc.swf?host={$server}{$params}{$extras}{$styles}">     <param name="movie" value="js/8wayrun/irc/lightirc.swf" />     <param name="allowfullscreen" value="true" />     <param name="wmode" value="transparent" />     <param name="flashvars" value="host={$server}{$params}{$extras}{$styles}" /> </object> 

when click button, activates jquery scripting...

$('#chat_shell').animate({ height: $('#chat_shell').height() + slideheight }, slidespeed); 

but instead, when click button, following error:

uncaught typeerror: cannot read property '0' of undefined

why happening , how fix it? know possible solution wrap object/embed div, set height 100% , edit height of div; inelegant solution , has compatibility problems height should never set 100%.

have tried checking $('#chat_shell').height() works on it's own?

i tried out code on flash element on site , worked fine, lead me believe issue arising elsewhere.

have checked event handler button fires properly? have checked jquery initializing properly? have tried other browsers?


Comments

Popular posts from this blog

razor - Is this a bug in WebMatrix PageData? -

c# - How to set Z index when using WPF DrawingContext? -

visual c++ - Using relative values in array sorting ( asm ) -