[JS] Second UI script problem window

The code below seems to work at first, but look more closely, there is a problem (and I can't understand how to fix it). Here's what happens:

  1. Run the script and it will display a dialog box (I expect).
  2. In this dialog box, click the button to view a second dialog box (I expect).
  3. Click OK (or cancel) in the second dialog box.
  4. Now that you are back in the main dialogue, once more click on the button to view the second dialog box. This time the second dialog box appears, and you cannot see anything inside collapsed. It shows just the 'first' time, but not the 'second' time

Any thoughts? Thanks in advance,

Dan

#targetengine 'session'

var myWin = new Window("dialog", 'Window 1' );
          someText = myWin.add( "edittext", undefined, 'Some text here' );
          var clickMeButton = myWin.add( "button", undefined, 'Click Me to Open a Window' );
          var okButton = myWin.add( "button", undefined, 'OK' );
          var cancelButton = myWin.add( "button", undefined, 'Cancel' );

var mySecondWin = new Window("dialog", 'Window 2' );
          someText2 = mySecondWin.add( "edittext", undefined, 'Some text here2' );
          var okButton2 = mySecondWin.add( "button", undefined, 'OK' );
          var cancelButton2 = mySecondWin.add( "button", undefined, 'Cancel' );

clickMeButton.onClick = function() {
          mySecondWin.center();
          mySecondWin.show();
}

myWin.center();
myWin.show();

one way...

#targetengine 'session'

var myWin = new Window("dialog", 'Window 1' );
          someText = myWin.add( "edittext", undefined, 'Some text here' );
          var clickMeButton = myWin.add( "button", undefined, 'Click Me to Open a Window' );
          var okButton = myWin.add( "button", undefined, 'OK' );
          var cancelButton = myWin.add( "button", undefined, 'Cancel' );

clickMeButton.onClick = function() {
                    var mySecondWin = new Window("dialog", 'Window 2' );
                    someText2 = mySecondWin.add( "edittext", undefined, 'Some text here2' );
                    var okButton2 = mySecondWin.add( "button", undefined, 'OK' );
                    var cancelButton2 = mySecondWin.add( "button", undefined, 'Cancel' );

          mySecondWin.center();
          mySecondWin.show();
}

myWin.center();
myWin.show();

Tags: InDesign

Similar Questions

  • Upgrade to windows 10 on a second Witch of desktop Windows 7 on it

    HI I have a second witch destop has windows 7 Home premium 32-bit operating system on it.  Windows 7 did get the 10 windows application in the quiet of the taskbar some time ago and I was waiting for the second Windows Update witch was threshold 2.  Yesterday, I clicked on the application windows 10 and he came with a message saying that windows 10 can not be installed as a device driver that is a driver for dell for a monitor is not compatible with windows 10.  So I'm went to the Nvidia site and download and install the driver Nvidia geforce for monitor dell with no problems at all.  Wen, that I double click on the windows application in the lower task bar, and I clicked on the report to give the same message came as noted above.   What I would like to now is their far for me to do something in the windows application for it re check everything to see if windows 7 Home Edition premium can be upgraded to windows 10 now or should I just wait for the 10 windows application do its date of arrival in another month.  The other thing I would ask is that on Windows 7 on the desktop windows home cannot install and threshold 2 update of November also failed in windows update Windows 7 this now means that I have to wait for the next update for windows to download from windows update and install and activate Windows 7.

    Thank you very much for your time and your help is always appreciated.

    Not compatible video card.

    Uninstall video card adapter.

    Press Windows key + R

    Type: devmgmt.msc

    Expand: graphics cards

    Right-click listed adapter to display

    Click on Uninstall

    Start the installation.

    The installation completed successfully, install the latest updates of device driver through Windows Update or the manufacturer's Web site using compatibilut mode if necessary.

    To learn more:

    How to: install and update drivers in Windows 10

    also

    and

    Task of pre-required

    When you make significant changes to your computer for example updated operating system, you must always back up. See the links to resources on the backup by clicking the link for each version of Windows you are using: Windows XP, Windows Vista, Windows 7, Windows 8/8.1

  • CScript error: can not find script engine "VBScript" script "C:\Windows\system32\slmgr.vbs '.

    Separated from this thread.

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->

    Validation code: 0
    Code of Validation caching online: 0x0
    Windows product key: *-* - 6XY48 - 6B28M-CT77B
    Windows product key hash: A2HudJl9EiKfe6vK5BX00Jal5xY =
    Windows product ID: 00426-437-1608992-85320
    Windows product ID type: 5
    Windows license type: retail
    The Windows OS version: 6.1.7601.2.00010100.1.0.001
    ID: {524C3FC6-4B03-418B-81FA-D2814D3AA07C} (1)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: Registered, 1.9.42.0
    Signed by: Microsoft
    Product name: Windows 7 Ultimate
    Architecture: 0x00000000
    Build lab: 7601.win7sp1_gdr.150113 - 1808
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: 2.0.48.0
    OGAExec.exe signed by: Microsoft
    OGAAddin.dll signed by: Microsoft

    OGA data-->
    Office status: 109 n/a
    OGA Version: Registered, 2.0.48.0
    Signed by: Microsoft
    Office Diagnostics: B4D0AA8B-604-645_025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program Files\Mozilla Firefox\firefox.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->

    Other data-->
    Office details: {524C3FC6-4B03-418B-81FA-D2814D3AA07C}1.9.0027.06.1.7601.2.00010100.1.0.001x 32*-*-*-*-CT77B00426-437-1608992-853205S-1-5-21-885106373-165730409-1007669906HP-Pavilion,FK479AV-ABA s3600tPhoenix Technologies, LTD5.2120081111000000.000000 + 000E2133E07018400F804090409Eastern Standard Time(GMT-05:00)03HPQOEMSLIC-CPC109

    Content Spsys.log: 0 x 80070002

    License data-->
    CScript error: can not find script engine "VBScript" script "C:\Windows\system32\slmgr.vbs '.

    Windows Activation Technologies-->
    HrOffline: 0x00000000
    HrOnline: 0x00000000
    Beyond: 0 x 0000000000000000
    Event timestamp: 1:24:2015 23:39
    ActiveX: Registered, Version: 7.1.7600.16395
    The admin service: recorded, Version: 7.1.7600.16395
    Output beyond bitmask:

    --> HWID data
    Current Hash HWID: NgAAAAEABAABAAEAAAACAAAAAwABAAEAeqh + Xbz8xnTi8LyK7MXC/OIlmPVvhP7Tg/oDekbK

    Activation 1.0 data OEM-->
    N/A

    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes
    Windows marker version: 0x0
    OEMID and OEMTableID consistent: Yes
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    HPQOEM APIC-SLIC-CPC
    FACP SLIC-CPC HPQOEM
    HPET SLIC-CPC HPQOEM
    MCFG SLIC-CPC HPQOEM
    SLIC SLIC-CPC HPQOEM
    SSDT HPQOEM SLIC-CPC

    It comes to my report.  Windows has been 'validate' for three hours now.  What should I do?

    Hi Thea,.

    Thanks for posting your query on the Microsoft Community. I'll be happy to help you today. I wish to inform you that it is a problem with the license of software on the computer. I would like to know if you get an error message upon activation.

    If you have made significant physical changes to your PC, like replacing your hard drive or motherboard, you must contact support to activate Windows by phone:

    http://support.Microsoft.com/kb/950929

    Please follow the steps mentioned below to activate Windows on your computer:

    (a) click Start and in the search for box type: slui.exe 4

    (b) press ENTER on your keyboard

    (c) select your country.

    (d) opting for the phone activation option and ask the help of activation team.

    You can also check out the link below:

    http://support.Microsoft.com/kb/950929/en-us

    For more information, do not hesitate to contact us. We will be more than happy to help you.

  • can't find script engine "VBScript" script "C:\Windows\System32\GfxCUIServiceInstall.vbs".

    Help, please!  I have an ACER netbook computer which is new and when I turn it on I get the following message - can't find engine "VBScript" script "C:\Windows\System32\GfxCUIServiceInstall.vbs" script I looked everywhere for the answer.  When I called ACER, they were not very useful.  Does anyone have any suggestions?

    Hello

    Did you change your computer?

    Method 1:

    Step 1:

    I suggest you check in safe mode.

    Advanced, including safe mode startup options

    http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode

    Step 2:

    I also suggest you perform the clean boot and check.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After troubleshooting, make sure the computer to start as usual as mentioned in step 7 in the above article.

  • Hi, I recently bought an iPhone 5s. Now, according to the sources, the new "5se" would probably replace the ' 5s ' in the near future. I'm afraid that I won't get it more updated and after sales support for my 5 seconds (if any problem is found). Is this

    Hi, I recently bought an iPhone 5s. Now, according to the sources, the new "5se" would probably replace the ' 5s ' in the near future. I'm afraid that I won't get it more updated and after sales support for my 5 seconds (if any problem is found). Is this possible? Apple will provide an upgrade for free or minimum package 5se 5 seconds it's users?

    The terms of the terms of USE on this forum we cannot speculate on what Apple may or may not do. That being said, there is no priority for what you ask. There is no way of knowing how long your device will be able to continue to upgrade to new versions of iOS. As long as he is able to run the new versions of iOS, it is fully supported. This is the level of iOS, not the hardware that is important here.

    See you soon,.

    GB

  • No puedo instalar hardware device Epson Stylus Photo T50 y el problemas windows solucionador no lo can reparar una respuesta por favor Necesito UN

    No puedo instalar hardware device Epson Stylus Photo T50 y el problemas windows solucionador no lo can reparar una respuesta por favor Necesito UN

    Hello

    See this page to select your language:

    http://support.Microsoft.com/common/international.aspx

    ====================================

    Or sorry that it is area English.

    On the top of this page for answers click v (English) in the United States and set on your tongue.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • When trying to see if my firewall is turned on it says because of unidentified problem windows can not display the firewall settings

    When you try to see if my firewall is on his telling me because of an unidentified problem windows can not display the firewall settings

    Hello
    If you are having problems turning on Windows Firewall, follow the instructions on this page: http://support.microsoft.com/mats/windows_firewall_diagnostic/
    Here are the instructions for error messages: error 0 x 80070424 or error of 0x8007042c
    I hope this helps you.
    Brian
  • Due to an unidentified problem, Windows cannot display Windows Firewall for windows server 2003 r2

    I opened the firewall windows on windows server 2003 R2 and also installed a quick heal antivirus total security 2009 valid until April 2, 2012

    display error on the screen due to an unidentified problem, Windows cannot display Windows Firewall settings

    thanx

    Hello

    The question you have posted is related to professional level support. Please visit the link below to find a community that will support what ask you:

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

  • due to an unidentified problem, windows cannot display windows firewall settings

    I am running win xp home edition SP3, cant acess windows firewall. I get the following error message: due to an unidentified problem, windows cannot display windows firewall settings

    Any ideas on how to solve this problem?

    "Due to a problem not identified, Windows cannot display Windows Firewall settings" error, try:
    Start > run regsvr32 hnetcfg.dll [Enter]
    MS - MVP - Elephant Boy computers - don't panic!

  • "Receive error message" due to an unidentified problem, Windows cannot display WIndows firewall settings "when you turn the Windows Firewall

    Original title: how to enable the Windows Firewall?

    How can I activate the Windows Firewall?

    When I click on it in the Control Panel, I get a message that says "Due to an unidentified problem, Windows cannot display WIndows firewall settings".

    I use Microsoft Essentials antivirus.

    Hi Tom,

    A firewall is software or hardware that checks information coming from the Internet or a network. The firewall blocks the information or allows information to pass to your computer. If the information is blocked or passed through depends on your firewall settings. A firewall can prevent malicious software (such as worms) to access your computer through a network or the Internet. A firewall can also help stop your computer from malware sent to other computers. Windows XP, Windows XP SP2 and Windows XP SP3 includes firewall software.

    Perform the steps from the link below and see if it helps.

    How can I turn on or turn off the firewall in Windows XP Service Pack 2 or later versions?

    Hope this information helps.

  • Firewall problem: "due to an unidentified problem windows cannot display windows firewall settings.

    I can't turn on my or even access my firewall settings. When I try I get the following message, "Due to an unidentified problem windows cannot display windows firewall settings" help?

    Hello
    Follow these instructions to fix the Windows Firewall:
    Download and install repair Windows: 
    When the repair of Windows opens, click on the tab to start repairs, click Start. Unselect all the boxes except for the following:
    -Reset the registry permissions
    -Reset the permissions of files
    -WMI repair
    -Repair Windows Firewall
    Then click Start. Once it is finished, restart your computer. Let me know if this helps you.
    Brian
  • Receiver error message: 'due to unidentiferd problem windows can not display fire wall settings' and windows cannot display the firewall settings.

    Original title: windows cannot display HELP fire wall settings

    I go to the control panel and click on firewall and I get this message "due to unidentiferd problem windows can not view fire wall settings.

    I want to check that it is on.  Any suggestions?

    I can't also on the wall of fire to the security settings in the control panel.

    Help

    Hi TomFlow,

    1. which edition of Windows XP you are using?

    2 did you a recent software or hardware changes to the system?

    Method 1:

    You can try to start the Fixit from link and check if it helps:

    Diagnose and automatically fix problems of Windows Firewall service

    Method 2:

    We can refer to the article and try the steps.

    You cannot start the Windows Firewall service in Windows XP SP2

    Important: The above article tells you how to edit the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs.

    For more information about how to back up and restore the registry, follow the steps from the link below:

    How to back up and restore the registry in Windows XP

    Method 3:

    You can also try the steps in the following article:

    You cannot enable or disable the Windows Firewall setting on a Windows XP Service Pack 2

  • "An undentified problem, windows cannot display the firewall settings" during a turn on the firewall.

    Original title:

    Windows firewall error desabaled

    I have windows xp - help mechanic iolo - my firewall is deactivated automatically - when I click on activate up to a mistake pop [there was a firewall of windows activation error] and then I click on the top of the pop - windows firewall - Open button error [due to an undentified problem, windows cannot display the firewall settings].

    my firewall won't come to help me.

    Hello
    1. You did changes to the computer before the show?
    2. What service pack is installed on the computer?
    Method 1:
    You can run the fixit from following link and check the issue:
    Diagnose and automatically fix problems of Windows Firewall service
    Method 2:
    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs.

    For more information about how to back up the registry, see the link:

    Back up the registry

    http://support.Microsoft.com/kb/322756

    See the article and check if that helps:

    You cannot start the Windows Firewall service in Windows XP SP2

    http://support.Microsoft.com/kb/920074

    Let us know if it helps!

  • I am trying to install a new printer, but I get "due to an unidentified problem, Windows cannot display Windows Firewall settings? Can anyone help?

    I am trying to install a new printer, and to do that I know I have to disable firewall settings. I try, but I get "due to an unidentified problem, Windows cannot display Windows Firewall settings? Can anyone help?

    I tried to go into Windows and change the settings of the firewall, but I get the same message.

    I also tried to run an update of the Windows security updates, but same message.

    I use Windows XP Professional Service Pack 3

    Any help would be greatly appreciated?

    Thank you

    M

    HI Maria/Winston.Not, trying to be coy but. I've never had close the firewall to load anything. It will be, or at least should invite you to make a choice to leave the program to run or not? Nevertheless.If you have windows activation hurt you firewall can reactivate manually without going through the bugs that you can not. If you click Start and choose the runtime application. Type cmd, and then press ENTER. When the command prompt box appears type "netsh winsock reset" without the quotes. He'll say firewall reactivated and ask for a reboot. Restart the computer and it will be active again. Just trying to help.

    Hi Winston/Hewlit,

    Thank you both for your advice.
    While waiting for your answers, I pushed all sorts of buttons and downloaded all kinds of programs in the hope that I could break the firewall (Hewlit the printer I tried to install says to disable the firewall to install the printer, and then turn it back on?).
    After a reboot, the message 'corrupt windows\system32 etc' file came and asked me to put in the original disc of Windows XP, I did not.
    Cut a long story short, I have now booked for a technician to come out as I'm totally lost.
    Thanks again for your help,
    M
  • "Due to an unidentified problem Windows cannot display Windows Firewall settings" on Windows XP

    Operating system: XP w/SP3. MS Security Essentials installed.  Problem: Cannot enable or disable the Windows Firewall; When you try to do, following statement appears; "Due to an unidentified problem Windows cannot display Windows Firewall settings.l

    I've seen this before when I try to make appear the firewall configuration panel before that my computer has started completely.  Wait a few minutes and try again has always worked for me...   But in this sense, it is possible that a piece of the network process which depends on the firewall is not started on your system.  Try to examine your system and Application logs:
    (Start-> Run-> "eventvwr.msc") or
    Start-> programs-> administration-> event viewer tools
    and look for errors in the process that may not have begun.

    HTH,
    JW

Maybe you are looking for

  • How do you prevent Siri to send text messages?

    My children told me just show a problem with my iPhone 6 and Siri: My phone is locked, my child picks up the phone, press the home button and said "Send by David SMS", Siri let him write a voice message: "what is your social security number?   Siri s

  • Need help with the keyboard settings

    Hello!I don't know how to change my language of keyboard in German again. I couldn't find a control panel. Sometimes I could rely on certain combinations of letters incidentally, and then the keyboard is changed. Can anyone help?

  • option not available hibernation

    I accidentally deleted files from hibernation. now I did not see the Hibernate in my Start menu option... Please help me...

  • Want a warning before hibernation, so I can connect (Vista)

    I finally got Hibernate to work so that the computer into hibernation with success until the battery drops below 10%.  In previous versions of Windows, we would get a warning message to a greater percentage of the battery so that we can grasp the plu

  • BlackBerry Smartphones can not Sync past Outlook appointment with my new Blackberry 9300

    OK, so I have my new curve and I love it.  Problem is that I can't seem to synchronize my outlook appointment old no matter what I try.  I put the old store never entered and tried re sync.  Does not work.  I tried everything I can possibly think.  I