Copy link to clipboard
Copied
HI All,
I developed a HTML5 extension with target applications Illustrator and InDesign.
but I see a behavioural difference b/w InDesign and Illustrator when I opened, closed and reopened the extension.
In InDesign panel gets reloaded each time when we reopened it, whereas in Illustrator panel does not gets reloaded.
It seems Illustrator persistent by default.
Can anyone tell me what changes I need to made to so that Illustrator reload panel after closed or hidden and get same behaviour in Illustrator as that of InDesign.
Regards,
Alam
Copy link to clipboard
Copied
Hi Alam,
Checkout Resister "com.adobe.csxs.events.panelWindowStatusChanged" CSXS event
Maybe you can then apply on window close
window.location.reload()
making sure that you have set
<Parameter>--mixed-context</Parameter>
HTH
Trevor
Copy link to clipboard
Copied
Thanks Trevor for your valuable reply and it helps me a bit not completely.
I see that event "panelWindowStatusChanged" does not work but WindowVisibilityChanged does the work and Hence I Observed it.
Again I see that same event gets fired when I hide the extension from collapse icon or close icon.
I tried with following events but did not seems working (listener does not gets invoke, may be eventID is not correct)
com.adobe.csxs.events.StateChangeEvent.windowClose
com.adobe.csxs.events.StateChangeEvent.windowHide
Let me know if you any solution to differentiate panel close/hide events
Regards,
Alam
Copy link to clipboard
Copied
"com.adobe.csxs.events.ExtensionUnloaded" ?
This looks like a useful post
But reading this https://www.davidebarranca.com/2014/07/html-panels-tips-12-cep-application-events/ raises doubts.
Copy link to clipboard
Copied
That forum link does look useful and it's worth reading carefully and checking out the links
This link ModalDialog: how to hide the close button or get unload event · Issue #77 · Adobe-CEP/CEP-Resources ... looks interesting.
Post back with your progress and solution
Copy link to clipboard
Copied
Went through above link and found that someone had mentioned about event "com.adobe.csxs.events.ExtensionUnloaded"
but I see that event listner for this event can not invoke because in Illustrator Extension remains persistent and does not gets unload until unless we close the Illustrator.
Let me know if my understanding is correct or not?
Regards,
Alam
Copy link to clipboard
Copied
Sorry, I don't know any more on the topic