cross browser - Why does the NPAPI plugin resize work fine on Chrome but fail on Firefox? -


i'm developing npapi plugin displaying ip-camera video. in order support 4:3, 5:4, , 16:9 ratio need resize plugin according users' selection.

it works on chrome, doesn't work on firefox @ all.

here code

embed id=ipcam type="application/npipcam2" width=720 height=576   function onchangecmbwindowratio() { try {     var w=640;     var h=480;      var value=cmbwindowratio.value;     if(value=="4:3")     {         w=640;         h=480;     }     if(value=="5:4")     {         w=720;         h=576;     }     else if(value=="16:9")     {         if(screen.width>1440 )         {             if(isie6)             {                 w=880;                 h=495;             }             else             {                 w=1280;                 h=720+20;             }         }         else         {             w=880;             h=495;         }     }      if(isie6)     {         ipcam.dt("ie6#plugin w="+w+",h="+h);          ipcam.style.width=w;         ipcam.style.height=h;     }     else     {         ipcam.dt("plugin w="+w+",h="+h);          ipcam.style.width=w;         ipcam.style.height=h;          ipcam.width=w;         ipcam.height=h;     }      setcookie('windowratio',value); } catch(e) {     return; } } 

i developed ocx ie. ie , chrome works fine, not work on firefox.

any appreciated!


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -