Skip to main content
Inspiring
December 25, 2017
Question

Illustrator won't reload Html extension when it is closed or hidden

  • December 25, 2017
  • 1 reply
  • 1246 views

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

This topic has been closed for replies.

1 reply

Trevor:
Legend
December 26, 2017

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

alam_84Author
Inspiring
December 27, 2017

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

Trevor:
Legend
December 27, 2017

"com.adobe.csxs.events.ExtensionUnloaded" ?

This looks like a useful post

com.adobe.csxs.events list

But reading this https://www.davidebarranca.com/2014/07/html-panels-tips-12-cep-application-events/  raises doubts.