My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 20: Javascript show hide plugin cause recreate activex and activex lost its state
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Dec 2011


 
Reported by mfar...@gmail.com, Dec 29, 2011
What steps will reproduce the problem?
1.hide object by adding style display:none
2.showing object by setting style display:block
3.and then the activex recreate and lost its state

What is the expected output? What do you see instead?
activex must save its state and simply we can show or hide object tag

What version of the product are you using? On what operating system?
FF v8 - ffactivex r39 - Windows 7

Please provide any additional information below.


Dec 29, 2011
Project Member #1 leeor.ah...@gmail.com
The plugin itself is never aware of its display state. The common issue is that browsers destroy hidden content and later recreate it if necessary.

I have previously found that setting the size (height and/or width) to 0 circumvents this problem, and leaves the plugin object alive.

If you think this is not the case, please enable logging, post the logs here and reopen the issue.
Status: Invalid
Dec 29, 2011
#2 mfar...@gmail.com
thank you for your attention.

how i can enable logging ?
Dec 29, 2011
Project Member #3 leeor.ah...@gmail.com
Please see the new ConfiguringLogging Wiki page.
Dec 29, 2011
#5 mfar...@gmail.com
AxHost.NPP_New: debug level set to 5
AxHost.verifyClsID: verified successfully
AxHost.setClsID: failed to set the requested clsid
AxHost.NPP_New: no valid CLSID or PROGID
AxHost.~AXHost: destroying the control...
AxHost.TestAuthorization: returning True
AxHost.verifyClsID: verified successfully
AxHost.setClsID: CLSID {6BA21C22-53A5-463f-BBE8-5CF7FFA0132B} set
AxHost.verifyClsID: verified successfully
AxHost.setClsIDFromProgID: PROGID EDOFFICE.EDOfficeCtrl.1 resolved and set
AxHost.CreateControl: control created successfully
AxHost.TestAuthorization: returning True
AxHost.verifyClsID: verified successfully
AxHost.setClsID: CLSID {6BA21C22-53A5-463f-BBE8-5CF7FFA0132B} set
AxHost.verifyClsID: verified successfully
AxHost.setClsIDFromProgID: PROGID EDOFFICE.EDOfficeCtrl.1 resolved and set
AxHost.CreateControl: control created successfully
NPP_Destroy: destroying the control...
AxHost.~AXHost: destroying the control...
// hide activex 
NPP_Destroy: destroying the control...
AxHost.~AXHost: destroying the control...
// show	activex
AxHost.TestAuthorization: returning True
AxHost.verifyClsID: verified successfully
AxHost.setClsID: CLSID {6BA21C22-53A5-463f-BBE8-5CF7FFA0132B} set
AxHost.verifyClsID: verified successfully
AxHost.setClsIDFromProgID: PROGID EDOFFICE.EDOfficeCtrl.1 resolved and set
AxHost.CreateControl: control created successfully


Dec 29, 2011
#6 mfar...@gmail.com
why status of this issue is invalid ? this is important issue for me !
Dec 30, 2011
Project Member #7 leeor.ah...@gmail.com
The status of this issue is invalid because your logs corroborate the explanation I provided in my initial reply to this report - when hiding the plugin object, the browser destroys it. It is shown by the calls to NPP_Destroy.

Since you have added your hide/show comments by hand, I have created the following page - http://jsfiddle.net/leeor/xaVcN/embedded/result/ - to illustrate exactly what is happening when you hide an element, as opposed to setting its size to 0 (height, width, or both). Below, you can see the exact logging output, with the hide/show/resize messages.

I suggest that you switch to changing the element's size instead of hiding it.

{{{
AxHost.NPP_New: debug level set to 5
AxHost.verifyClsID: verified successfully
AxHost.setClsID: CLSID {D27CDB6E-AE6D-11cf-96B8-444553540000} set
AxHost.verifyClsID: verified successfully
AxHost.setClsIDFromProgID: PROGID ShockwaveFlash.ShockwaveFlash resolved and set
AxHost.CreateControl: control created successfully
AxHost.AddEventHandler: handler OnReady set for event onreadystatechange
setting width to 0...
setting width to 300...
setting height to 0...
setting height to 300...
setting height to 0...
setting width to 0...
setting height to 300...
setting width to 300...
hiding...
NPP_Destroy: destroying the control...
AxHost.~AXHost: destroying the control...
showing...
AxHost.TestAuthorization: returning True
AxHost.NPP_New: debug level set to 5
AxHost.verifyClsID: verified successfully
AxHost.setClsID: CLSID {D27CDB6E-AE6D-11cf-96B8-444553540000} set
AxHost.verifyClsID: verified successfully
AxHost.setClsIDFromProgID: PROGID ShockwaveFlash.ShockwaveFlash resolved and set
AxHost.CreateControl: control created successfully
AxHost.AddEventHandler: handler OnReady set for event onreadystatechange
}}}
Jun 28, 2012
#8 Xguot...@gmail.com
EDOFFICE.EDOfficeCtrl.1    EDOFFICE.EDOfficeCtrl.1
Jun 29, 2012
#9 mfar...@gmail.com
what's your mean ?

Powered by Google Project Hosting