<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - window.close not working on indesign cc2014</title>
    <link>https://forums.adobe.com/community/creativesuites/extensionbuilder?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Tue, 21 Oct 2014 13:41:22 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-10-21T13:41:22Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: window.close not working on indesign cc2014</title>
      <link>https://forums.adobe.com/message/6851339?tstart=0#6851339</link>
      <description>&lt;!-- [DocumentBodyStart:62f24d59-6510-485f-8a36-e7d49b7145f6] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;
&lt;/blockquote&gt;&lt;p&gt;I don't know how complex your UI is. If ScriptUI is an option, I'd probably go with that. Another option would be to make a separate window extension described in your manifest instead of creating it on the fly. You'd then communicate with it / launch it using CSXSInterface. (I don't know if that will help.) Lastly, you might be able to cobble something together using system native tools or Xojo and make a floating window look like it's part of InDesign when it's really not.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;HTH,&lt;/p&gt;&lt;p&gt;Harbs&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:62f24d59-6510-485f-8a36-e7d49b7145f6] --&gt;&lt;img src='/beacon?t=1415938985431' /&gt;</description>
      <pubDate>Tue, 21 Oct 2014 13:41:22 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6851339?tstart=0#6851339</guid>
      <dc:date>2014-10-21T13:41:22Z</dc:date>
      <clearspace:dateToText>3 weeks 3 days ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: window.close not working on indesign cc2014</title>
      <link>https://forums.adobe.com/message/6850668?tstart=0#6850668</link>
      <description>&lt;!-- [DocumentBodyStart:22f43e99-f88e-4b82-bd02-f8f83289527f] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Okay, if I change the window type to Modal, it closes okay. If window type is panel or modal-less, it doesn't close.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I need my window to be able to lose focus, which cannot be possible in case of modal dialog. I am showing image preview in the dialog window by clicking on its thumbnail in the main app. I want the user to be able to change the preview by clicking on the thumbnail without closing the dialog.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Everything else is okay, the close function is ruining it.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any suggestions?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:22f43e99-f88e-4b82-bd02-f8f83289527f] --&gt;</description>
      <pubDate>Tue, 21 Oct 2014 09:55:37 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6850668?tstart=0#6850668</guid>
      <dc:date>2014-10-21T09:55:37Z</dc:date>
      <clearspace:dateToText>3 weeks 3 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: window.close not working on indesign cc2014</title>
      <link>https://forums.adobe.com/message/6850644?tstart=0#6850644</link>
      <description>&lt;!-- [DocumentBodyStart:dfcaa233-0927-49b9-aaa5-b440d8fdb453] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;CSXSWindowType.PANEL has always been a bit funky. It hasn't even worked in all the apps. If you can make it MODAL instead, I'd do that.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Harbs&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:dfcaa233-0927-49b9-aaa5-b440d8fdb453] --&gt;</description>
      <pubDate>Tue, 21 Oct 2014 09:34:00 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6850644?tstart=0#6850644</guid>
      <dc:date>2014-10-21T09:34:00Z</dc:date>
      <clearspace:dateToText>3 weeks 3 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: window.close not working on indesign cc2014</title>
      <link>https://forums.adobe.com/message/6850500?tstart=0#6850500</link>
      <description>&lt;!-- [DocumentBodyStart:68f6f52c-376c-4bfd-bd6f-9e0c69650879] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I went ahead and wrote the below code for close button handler,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;!--[CodeBlockStart:f54e4c06-18bb-43c4-8615-46c1b67af2c3][excluded]--&gt;&lt;pre class="javascript" name="code"&gt;
var openedWindows:Array = NativeApplication.nativeApplication.openedWindows;
var i:uint;
var count:uint = openedWindows.length;
for(i; i &amp;lt; count; i++)
{
&amp;nbsp; openedWindows[i].close();
}
&lt;/pre&gt;&lt;!--[CodeBlockEnd:f54e4c06-18bb-43c4-8615-46c1b67af2c3]--&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This closed the parent application, but the dialog Window remained as it is..&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What is happening? Is this a bug with Adobe?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What alternative do I have if I want to open another dialog?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:68f6f52c-376c-4bfd-bd6f-9e0c69650879] --&gt;</description>
      <pubDate>Tue, 21 Oct 2014 08:25:26 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6850500?tstart=0#6850500</guid>
      <dc:date>2014-10-21T08:25:26Z</dc:date>
      <clearspace:dateToText>3 weeks 3 days ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>window.close not working on indesign cc2014</title>
      <link>https://forums.adobe.com/message/6850349?tstart=0#6850349</link>
      <description>&lt;!-- [DocumentBodyStart:87813e7d-41cf-4bc6-82a4-741a1d0f048a] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi All&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am developing an extension for InDesign CS5 and above. I have a dialog of type panel, CSXSWindowType.PANEL which opens up on button click. This dialog contains a button for closing it. The click event executes " this.close() ".&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now, the problem is that for ID CC2014 this.close() is not closing the dialog. Only the default close button at the corner of the window closes it. I have no idea why the dialog is behaving this way. It works in all the other versions.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any ideas?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:87813e7d-41cf-4bc6-82a4-741a1d0f048a] --&gt;</description>
      <pubDate>Tue, 21 Oct 2014 06:50:20 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6850349?tstart=0#6850349</guid>
      <dc:date>2014-10-21T06:50:20Z</dc:date>
      <clearspace:dateToText>3 weeks 3 days ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

