[CS5/JS/ScriptUI]: All contents is removed from tabbedpanel when showing alert box or other Window.

When I open a new window (an alert box, another scriptUI window, or an old style InDesign dialog) from my non modal ScriptUI interface, the contents inside all tabs on the tabbedpanel of the window disappear completely, and the last tab is selected.
Other controls, outside the tabbed panel (but in the same window) are left untouched.
I suspect the error has to do with the tab control. I have been able to recreate the error in an extremely simple window, and I attach the code below.
#targetengine 'test'
var Window1 = new Window('palette','Test',undefined);
buildWindow();
Window1.show();
function buildWindow(){
    Window1.tabMain = Window1.add('tabbedpanel',undefined,undefined);
    Window1.tabMain.minimumSize= [450,170];
    Window1.tabMain.Tab1 = Window1.tabMain.add('tab',undefined,"Tab 1");
    Window1.tabMain.Tab1.Static1 = Window1.tabMain.Tab1.add('staticText',undefined,"Text on tab 1");
    Window1.tabMain.Tab2 = Window1.tabMain.add('tab',undefined,"Tab 2");
    Window1.tabMain.Tab2.Static1 = Window1.tabMain.Tab2.add('staticText',undefined,"Text on tab 2");
    Window1.tabMain.Tab1.btnTest = Window1.tabMain.Tab1.add('button',undefined,"Test");
    Window1.tabMain.Tab1.btnTest.onClick = function(){alert('btnTest_onClick')};
    // Trying with calls to layout . (This button is not affected by the alert showing - only controls inside the tabbed panel)
    Window1.btnLayout = Window1.add('button', undefined, 'Window1.layout.layout()');
    Window1.btnLayout.onClick = function(){Window1.layout.layout()};
The interface works well in CS4, and also if I make the window modal (by creating it as a "dialog").
In CS5, the result is this:
Calling layout.layout() or layout.resize() doesn't do anything.
If someone else would like to try my code, do you get the same effect?
Is the behaviour known?
Is there a way to prevent this from happening for non modal ScriptUI windows?
Best regards,
Andreas Jansson

Thanks Marijan, for testing and letting me know!
I filed a bug report now. We would perhaps have to "force" a couple of our clients to an upgrade from CS5 to CS5.5 in order to beat this bug and get it working, unless Adobe acknowledges it quickly, which I don't count on.
No good news then... I took for granted that the interface would work in CS5 if I made it in CS4.
(The thing that I was mostly concerned about was a tree view which I tested in Mac/PC and on CS4/CS5. Not the "tabbed panel"...)
Andreas
Adding this answer I got from Adobe:
Monday, November 21, 2011 2:21:03 AM PST
Hello Andreas,
I was able to replicate this problem with InDesign CS5. This bug seems
to have already been fixed as a side effect of some code change within
InDesign CS5.5.
I have logged this under bug # 3050997. This will now be worked upon by
InDesign engineering and should be fixed soon.
I'll keep you informed about updates on this bug.
Message was edited by: Andreas Jansson. Response from Adobe added.

Similar Messages

  • I need to erase all Contents and Settings from my i phone 5 but I forgot the restrictions passcode. How can I get it. ( Idon't have access to i tunes). Thanks.

    I need to erase all Contents and Settings from my i phone 5 but I forgot the restrictions passcode. How can I get it. ( Idon't have access to i tunes). Thanks.

    Not possible.  You need access to iTunes.
    The passcode will be required to make changes to these settings or to disable Restrictions. Note: If you lose or forget a restriction passcode, you will need to perform a factory restore to remove it.
    The above comes from here:
    http://support.apple.com/kb/HT4213

  • Erase all content and settings from my iPhone.

    If I erase all content and settings from my iphone will I lose everything on iCloud? I got my phone from my mother. I would like to delete everything off the phone, but I also want to make sure that she still has everything that was on it on iCloud. I tried going on "reset" > "erase all content and settings" but then it says "Enter Apple ID password to erase the iPhone and remove it from your account, [email protected]". I´m worried that if I do this everything she has on iCloud is deleted?

    Hi, first do the backup on the phone on iCloud to be sure all saved, then you can erase all and it will be saved on icloud.
    also install  iCloud on the pc so you check if you have all data before erasing from the phone-double sure.

  • HT201274 iPhone 4s, but wifi option is greyed out. I want to erase all content and setting from my old 4s and it will not connect to the internet, because the cellular data is no longer connected, bought a iPhone 5c. how do I erase all on my 4s with no in

    I have an iPhone 4s, but wifi the option is greyed out. The wifi stopped working on it months ago. Now I wanted to erase all content and setting from my old 4s and it will not connect to the internet, because the cellular data is no longer connected, since I bought a new iPhone 5c. I can't erase my phone by pluggin it into my Macbook Pro, since I can't disable the "Find my iPhone" App without internet. How do I erase all the data and setting on my 4s without connecting to the internet? It is running ios 7

    See this https://answers.yahoo.com/question/index?qid=20131119125513AAtRloc
    I just did it. To enter DFU mode, I had to use "method 3" on this post
    http://thebigboss.org/guides-iphone-ipod-ipad/dfu-mode
    Too bad my 4S is 2 years old. Wifi is dead. I had to upgrade to 5S, but 5S is soooooo much faster than 4S so it's kind of good outcome. Without the 4S breaking down, a stingy person like me would have never upgraded the phone.

  • I erased all content and settings from i phone because my dad gave it to me i press and hold both buttons i conected it to the itunes but it tells me its not available and my iphone doesnt open what shall i do?

    I erased all content and settings from i phone because my dad gave it to me i press and hold both buttons i conected it to the itunes but it tells me its not available and my iphone doesnt open what shall i do?

    Do you have a SIM in the phone? A SIM is required to activate the phone.
    If you do, ask your dad if the phone was jailbroken or hacked to unlock it.

  • HT201274 i want to erase all content and settings from my old iPad and give to my kids. Will I immediately lose all of the apps and content on my iPhone and my new iPad that have the same info as the old one

    i want to erase all content and settings from my old ipad and was wondering if the same content will be lost on my iphone and new ipad. all under same apple id

    No. Your other devices will be unaffected.
    Just tap Settings -> General -> Reset -> Erase all content and settings.

  • Erasing all content and settings from my iPad is taking 8+ hours...

    I wanted to erase all content and settings from my iPad. I started the process at 2pm and it is now 10:20pm. It has been stuck on the loading circle going round and round for more than 8 hours now... is this normal? What should I do? and is there anything that can fasten up the process. My iPad is an iPad mini 16GB WIFI white, on either iOS 7.1.1 or iOS 7.1.2 and most of the storage was taken up, is that why its taking too long?

    Hello ceburton,
    After reviewing your post, it sounds like Erase All Content and Settings is taking a while to finish. I would recommend that you read this article, it may be able to help the issue.
    iOS: Understanding 'Erase All Content and Settings' - Apple Support
    When you select to "Erase All Content and Settings," the process can take from a few minutes to several hours. The time this process takes will vary by iOS device:
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • IPod classic content is missing from my iTunes library after a reinstallation of Windows 7 on my PC. How do I restore the contents of my iPod classic to my iTunes library WITHOUT losing that content on my iPod?

    iPod classic content is missing from my iTunes library after a reinstallation of Windows 7 on my PC. How do I restore the contents of my iPod classic to my iTunes library WITHOUT losing that content on my iPod?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • I have an iPad 2 and receive e-mail through internet connection. When I delete e-mails, and clear my Trash folder, they re-appear. Setting are for remove from server when moved from Inbox. Any idea what I can do to actually delete them?

    I have an iPad 2 and receive e-mail through regular internet connection. Lately, when I delete e-mails, and clear my Trash folder, they re-appear, downloaded anew from the server and marked as unread. My e-mail Advanced Settings are selected for "Remove from server when moved from Inbox." Even when I access the e-mail accountfrom my desktop and delete the e-mails, the re-appear on my iPad. Does anyone have any idea what is causing this and what I can do to actually delete them?

    Sounds like you are looking in the wrong Administrative Group container which is why you are seeing your Exchange 2010 servers in there.
    When you install Exchange 2003 only you will see a container named by default as "CN=First Administrative Group" container. But this could be named anything if you changed the Organization Name on the installation when you installed the first
    Exchange 2003 server into the domain/forest. 
    You will notice that when you install Exchange 2010 part of the AD setup is to create a new configuration container and is named by default "CN=First Administrative Group (FYDIBOHF23SPDLT)".
    So it sounds like you are not looking in the right location within ADSIEdit. 
    You may find the following article also helpful for this issue which is the same resolution:
    http://blogs.technet.com/b/sbs/archive/2012/05/17/empty-cn-servers-container-causing-issues-with-public-folders-on-small-business-server-2011.aspx
    I recommend though that you ensure your Exchange 2003 servers are fully uninstalled or no longer present in your environment before you go deleting the Servers container though.. The following Microsoft article will help with this:
    http://technet.microsoft.com/en-gb/library/gg576862(v=exchg.141).aspx

  • How do I stop all of my devices from ringing when a call comes in

    How do I stop all of my devices from ringing when a call comes in

    Use a different iCloud account on each device.
    Don't use iCloud at all.
    Disable Bluetooth.
    Don't connect to the same wi-fi network on all the devices.
    Go to Settings > FaceTime and turn it off.
    Go to Settings > FaceTime on the devices and disable 'iPhone Cellular Calls'.
    Any of these will work, but the last one is probably best.

  • My trash bin has one item that refuses to be deleted. Under name, it says, 0. date; dec. 31, 1903. size; 0 kb. I have no idea where it came from. When I click, info. the info. window starts to appear, then goes away. Weird or what? Hope someone can help?

    my trash bin has one item that refuses to be deleted. Under name, it says, 0. date; dec. 31, 1903. size; 0 kb. I have no idea where it came from. When I click, info. the info. window starts to appear, then goes away. Weird or what? Hope someone can help?

    sorry i forgot that... i use php5 so i guessed at the module name... upon looking closer at the conf its mod_php4.c
    <pre>
    <IfModule mod_php4.c>
    AddType application/x-httpd-php .php
    </IfModule>
    </pre>

  • All APPLICATIONS CRASH WHEN AN ALERT BOX POPS UP! FOR THE LOVE OF GOD HELP!

    When any alert box pops up (e.g. Reseting Safari, Changing an extention in Finder) The application that sent the alert crashes within a few seconds. I do not know how this happened, but it is very annoying and harmful to what i am working on. I think this started a few days ago, and the only thing that i think might of caused it is Google earth, which i just installed. I tried disk utility (on and off the CD), to no avail. This is not restricted to any particular program, and crashes everthing. Please, For the Love Of God Help!!!!!!
    I have Safari 1.3.2 (if it helps)

    Hi--
    Try this: go to the System Preferences and look at the "Speech" preference pane. Make sure everything is turned off in the "Spoken User Interface" tab. Especially the "Speak the Alert Text".
    If that's not it, open up your Console application from the Utilities folder. Click on the "Logs" icon at the top left until you see a listing of folders on the left side. Click the triangle next to ~/Library/Logs to reveal some sub-folders. One should be called "CrashReporter". Open it and click on one of the crash logs. Each one should have a section like this:
    Thread 0 Crashed:
    0 <<00000000>> 0xfffeff10 objcmsgSendrtp + 16
    1 com.apple.Foundation 0x928aa9d0 -[NSCFDictionary setObject:forKey:] + 164
    2 MyController.ob 0x0003fba0 +[MyController initialize] + 240 (MyController.m:16)
    3 libobjc.A.dylib 0x909c0670 class_initialize + 300Copy and paste the crashed thread here and maybe we can figure out what common thing is crashing.
    charlie

  • Bridge CS5: Images added to collection get removed from collection

    This is the first time I used non-smart collections. But, I'm sure that I'm quite sure that I'm not doing anything wrong.
    I simply dragged thumbnails into the collection from various folders and the collection shows all 20 images. Then, I close out Bridge and open it later, only to find that there are only 4 images in that collection. There may have been 4 images to start with, but every image I've added does not get remembered. This has happened twice and it's very unnerving because the images I am adding are coming from folders that are all over the place and it's very hard to look up all the pictures again.
    What's up with this?
    Thanks,
       Mike

    I've just noticed this problem, by chance, whilst moving data to a new computer.
    We found that files that were in collections were randomly missing from Bridge CS5's display, and sure enough, as described earlier, as soon as a file in the collection with a quote/spostrophe was read, that file and the rest of the collection were missing from Bridge CS5's display.
    (This was using Bridge 4.0.3.9. Adobe Application Manager tells me my software is uptodate)
    Because we had some backed up copies of Collections from both Bridge CS4 and Bridge CS5, I've been able to work a few things out, which I hope might help someone at Adobe get the problem fixed - and might help a few frustrated users too...
    Background
    The following entirely applies to Windows 7 (and presumably Windows Vista too):
    In Bridge CS4, collections files are stored in:
    C:\Users\%USERNAME%\AppData\Roaming\Adobe\Bridge CS4\Collections
    In Bridge CS5, collections files are stored in:
    C:\Users\%USERNAME%\AppData\Roaming\Adobe\Bridge CS5\Collections
    Both CS4 and CS5 store their Collections in files called <collection name>.filelist
    Both are XML files, where file paths are surrounded by apostrophes:
    For example:
    <file uri='bridge:fs:file:///D:/Shared%20Images/Flowers/RHS/DSC_0788.jpg'>
    Both Bridge CS4 and CS5 convert any spaces in file paths to %20 - so /Shared%20Images/ above is actually /Shared Images/ on disk.
    The cause of the bug
    Crucially, however, in Bridge CS4, any apostrophes (i.e. single quotes) in file paths get converted to %27
    But this conversion does not happen in Bridge CS5. And then when filelists get read back in, the data is truncated.
    As a developer, I'm surprised at this sort of regression in behaviour, in such expensive software from such a large company.
    Workarounds
    None of these should be required to be done by a user, I feel, but I have found that they do work, and they could be scripted (e.g. in Python) if someone were sufficiently desparate:
    Edit your .filelist files that were created by Bridge CS5, and convert all ' in file paths to %27 - oh yes, and remember to do that every time you add any new files to any existing or new Collections
    Edit your .filelist files and change the single quotes at the start and end of each <file uri line to double quotes
    I don't regard "remove quotes from your file names" as an acceptable workaround, however. We've got nearly 400GB of files, going back more than 10 years, and various of these are referred to from other locations, e.g. InDesign publications: if we were to rename locations for the benefit of Bridge, we'd break other stuff on the PC.
    Clare

  • I need to erase all content and settings from old iPhone 4s.  Will doing so affect new iPhone 6 which is using the same iCloud account and Apple ID?

    I need to erase all the content and settings from old iPhone 4s.  Will doing so affect content on new iPhone 6 which is using the same iCloud account and Apple ID?

    No, it will not affect the iPhone 6 content if you wipe the old iPhone 4s.

  • I reseted all contents and settings from my ipad and now it won't turn on, i get the apple logo but it won't open at all, help plz

    I reset all contents and settings on my ipad and it won't turn on, when i try to open it the apple logo appears and then nothing happens

    Hi how did you resolve this problem

Maybe you are looking for