• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Contributor ,
Dec 24, 2017 Dec 24, 2017

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

Views

915

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Dec 26, 2017 Dec 26, 2017

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 27, 2017 Dec 27, 2017

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Dec 27, 2017 Dec 27, 2017

Copy link to clipboard

Copied

"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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Dec 27, 2017 Dec 27, 2017

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 03, 2018 Jan 03, 2018

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Jan 03, 2018 Jan 03, 2018

Copy link to clipboard

Copied

LATEST

Sorry, I don't know any more on the topic

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines