Why does closing a window in Indesign doesn't work?

I have a question concerning Indesign script.
Why does it work, when you close a window like:
submitButton.onClick = function(){ close(); }
But when I try to execute a function afterwards like:
submitButton.onClick = function(){ close(); tagElements(); }
(note I am using the "with" tag, so no window.close() is needed)
The window does not close? Am I forgetting about something here? Shouldn't the window close, and then execute the function?
The window is initialized like:
var de = new Window('dialog', 'Descriptions');

Stamm wrote:
(note I am using the "with" tag, so no window.close() is needed)
The window is initialized like:
var de = new Window('dialog', 'Descriptions');
O.k. but did you see if it does work when you use de.close() ?

Similar Messages

  • Why does closing all open windows (15) and leaving only one drop ram usage from 1.5 to 1.4Gb and not more.

    Why does closing all open windows (15) and leaving only one drop ram usage by only 100mb from 1.5 to 1.4Gb.
    What is in this 1.4 gb ?
    I don't care much about ram, It's just that cpu usage spike like crazy by the end.
    ''Edited to remove swearing - TonyE''

    Hi musicfan,<br />Sorry you are having problems with Firefox. Maybe you should have asked earlier and we could have fixed it.
    Reading your comments I do not see that rolling back to an insecure Firefox 22 will actually help you much. You are probably best using IE, unless you have also damaged that.
    *[[Export bookmarks to Internet Explorer]]
    You should not use old versions they are insecure. Security fixes are publicised and exploitable.
    * [[Install an older version of Firefox]]
    * https://www.mozilla.org/security/known-vulnerabilities/firefox.html
    Most others will not be having such problems. We are now able to say that with confidence because after developers missed a regression in Firefox 4 telemetry was introduced so that data was obtained. It may be an idea to turn on your telemetry, if you have not already done so, and decide to stick with Firefox.
    *[[Send performance data to Mozilla to help improve Firefox]]
    Trying safe mode takes seconds. Unfortunatly if you are not willing to do even rudimentary troubleshooting there is not anything we can do to help you.
    *[[Troubleshoot Firefox issues using Safe Mode]]

  • I have an iPhone 4S.  When I try to print pictures, from my Windows computer, it doesn't work.  Open Office also gives me an "unknown graphic" message.  These are JPEGs, aren't they?  Why can't I print and what is the unknown graphic?

    I have an iPhone 4S.  When I try to print pictures, from my Windows computer, it doesn't work.  Open Office also gives me an "unknown graphic" message.  These are JPEGs, aren't they?  Why can't I print and what is the unknown graphic?

    Hi,
    "A day after the name change became official my built in skydrive app stopped working"
    Did you point that SkyDrive changed to OneDrive?
    Did you move your OneDrive to another location or change its name?
    Please login OneDrive with web-based to check if you could access it successfully.
    Please refer to the following article to try the troubleshooter and check the service status:
    SkyDrive: FAQ
    http://windows.microsoft.com/en-in/windows-8/skydrive-app-faq
    Karen Hu
    TechNet Community Support

  • Why does the document window in illustrator cs6 move to the far left when I reopen the file?

    why does the document window in illustrator cs6 move to the far left when I reopen the file?

    Hi John,
    thanks for the fast response.  cs5 remembered the window position.  I like having the window in the middle as I have a 27" monitor.  I just upgraded to cs6 yesterday and I'm sure it was remembering the window document position.  I think.  If i find out how to fix this, I'll post it here.
    And while I'm on the subject of cs6, why the f*** did adobe combine the stroke and swatches pallettes?  Now I forever have to click stroke and swatch tabs all day.  And I love the army and navy file icons of photoshop and illustrator.  I won't comment on Acrobat X.  ; (

  • Why does Illustrator on Windows 7, 64bit, take 30seconds+ to save a simple image?

    This question is for Adobe Customer Service, thanks. 
    Why does Illustrator on Windows 7, 64bit, take 30seconds+ to save a simple image comprising of two rectangles only (screen shot below)?  I set up a document like this to test the speed, since I've been having trouble saving all documents - they hang, sometimes with the 'this program is not responding' message.   Switching to CC is not an option.
    If it helps, I can come down to the Adobe San Francisco office with my computer.  I've spent a long time trying to resolve this without success.
    Btw, Photoshop CS6 saves fine.
    Thanks again.

    knot,
    Customer Care is over there:
    I believe this is one for Customer Care (tick I Still Need Help and hope for an agent available for a chat),
    http://helpx.adobe.com/contact.html?product=illustrator&topic=downloading-installing-and-s etting-up
    Sometimes staff appear here.
    We are just the natives.
    Can you create artwork without delays?
    Is there a printer (driver) set up?
    Are you saving to own harddisk (recommended) or somewhere else?

  • Why does the view window all of a sudden expand the content of the page I am viewing so that I have to go to "view" and click actual size??

    Why does the view window all of a sudden expand the content of the page I am viewing so that I have to go to "view" and click actual size??
    Then a few minutes later, it goes back to expanded again, it is driving me crazy.  how can I stop this????
    Thanks for any help.

    There could be a number of reasons, first thing to check is if you are clicking Command + or Command -. The Command 0 keystrokes restore Safari to the actual size. You can also reset Safari by Safari - Reset.

  • Why does Adobe Reader window open When i click on "about windows Media Player" , then click  on "Tec

    why does Adobe Reader window open When i click on "about windows Media Player" , then click  on "Technical support information". if the file isnt a PDF file then why is Adobe Reader even summoned?

    i looked at Adobe file extensions first and didnt find htm among the ones listed. but then i looked at file extensions and what program is assigned to open htm and sure enough Adobe was assigned to it. i changed it. thank you.

  • Why does firefox cause windows vista to crash

    why does firefox cause windows vistra to crash

    hello, as long as the download-process isn't finished a file gets the .part extension appended - this is the expected behaviour in firefox...

  • Why does a finder window pop up when I open numbers?

    Why does a finder window pop up when I open numbers?

    New Document is one click in the lower left of the opening window!  You could write an AppleScript to avoid that one click, but that may not be worth the candle.
    Note that after that one click you can save an additional click by specifying 'Use template:<your chosen template>' instead of 'Show Template Chooser' in Numbers > Preferences > General.
    SG

  • I bought an external hard drive for backups to use with Time Machine, but however when I try to connect it with the other windows laptop it doesn't work ? intact it doesn't work on any other device except my MAC ?

    I bought an external hard drive for backups to use with Time Machine, but however when I try to connect it with the other windows laptop it doesn't work ? intact it doesn't work on any other device except my MAC ?

    Do not worry about it.
    Time Machine needs that your external drive is formatted in HFS+, or better known as "Mac OS Extended (Journaled)". This filesystem is used by Apple on Macs and Windows cannot read or write drives formatted with this filesystem, being this the reason why all your devices do not read the external drive except your Mac.
    You can only use your external drive to make Time Machine drives. If you store anything different, you may damage the Time Machine structure, so it is better not to use it as a drive to store other data. Instead, get another external drive to do it or create a second partition on the external drive formatted in FAT32 by using Disk Utility > http://pondini.org/OSX/DU3.html FAT32 can be read by Windows PCs

  • In my wife's window, the sound works, when I switch over to my window the sound doesn't work.  I noticed the problem when I went to a YouTube video.  How do I correct this?

    In my wife's window, the sound works, when I switch over to my window the sound doesn't work.  I noticed the problem when I went to a YouTube video.  How do I correct this?

    Hello Kiira Doon,
    The troubleshooting steps detailed below may help get your iPhone's display to function.
    Toggle the ringer switch to see if the unit vibrates. If it does, it could be that iPhone is getting power, but is not displaying any image.
    Try turning iPhone off and then on again.
    While connected to the iPhone charger, try to reset the iPhone.
    If the low-battery screen appears, charge the iPhone.
    My issue is still not resolved. What do I do next?Contact Apple Support.
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Cheers,
    Allen

  • Windows 8 - hyperlink doesn't work....how do I fix? I already tried PDF/A Never...still doesn't work.

    Windows 8 - hyperlink doesn't work  how do I fix? Already tried to PDF/A Never, still doesn't work.Collaboration & Commenting

    What country are you in?  Is YouTube legal there?

  • Why does Apple iPad Camera Connection Kit no longer work with iOS8

    Why does Apple iPad Camera Connection Kit no longer work with iOS8?

    The kit is firmly inserted in thhe iPad's dock ? You could also try a reset and see if it's recognised after the iPad has restarted : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    I haven't had problems using the kit with SD cards from Canon cameras . What capacity is the card, and it's an SD or SDHC card - if it's an SDXC card that's formatted as ExFAT then it won't be recognised

  • TS3704 How are you supposed to fix "The feature you are trying to use is on a network resource that is unavailable" alert appears when you remove Apple software in Windows if it doesn't work on Windows 8 or 8.1???

    How are you supposed to fix "The feature you are trying to use is on a network resource that is unavailable" alert appears when you remove Apple software in Windows if it doesn't work on Windows 8 or 8.1???

    See Troubleshooting issues with iTunes for Windows updates. You may have to uninstall what you can, reboot and delete the named folders, then reinstall.
    tt2

  • I can't open wmv files with Lion.  Windows media player doesn't work.  Any suggestions?

    Unable to open wmv files using Lion.  Windows media player doesn't work.  Are there any suggestions.
    Thanks

    Lynnie Marie  ---
    macfriedchikkin's reply would make sense to you if you were trying to open a camera, but if you are trying to view streming media from a web site that is a different story. It helps to be very specific about what you are tyring to do on these forums.
    I belive you would go into Firefox Preferences menu and tell it  to use VLC as the application to play WMV files. I'm still running Tiger,  however, so I can't tell you if it the latest version works wel that way. The Tiger version doesn't seem to, but a lot may have changed since then. (I'm only just getting around to installing Leopard next week now that there are too may apps I can't run on Tiger. ) Perhaps someone else on this forum can better help you set  up the player in your browser.
    Or you can cut out the middleman and give VLC the direct video URL:
    Choose Open File from the File menu and paste in the URL of the video, say,
    http://azul.streamguys.com/auduboncal-1
    or http://azul.streamguys.com/auduboncal-2
    Your media should play this way. Dont forget to save the playlist for later.
    I'l keep investigating on my end, and yes, I'm also  encouraging certain people who are streaming windows media in to switching to a different format
    Best --
    G

Maybe you are looking for

  • Pictures in my Photo Stream disappeared?

    I was checking my photo stream for some pictures I took a while ago. I had about 750 photos on my Photo Stream, which I know is under the "1000 photos before they start deleting from your device" rule. Suddenly, just yesterday (after recently upgradi

  • Check Connection of Communication Arrangement for SAP ERP Financials Using IDoc Failed

    Dear experts, We are checking outbound connection from C4TE to ERP in Communication Arrangement for SAP ERP Financials Using IDoc Failed. We get the attached error message: Checking connection failed Error accessing service; Service Ping ERROR: Forbi

  • Error trying to Reply to message

    I'm trying to reply to a message in the Acrobat-Javascript forum, but when I click on 'Reply', I get an error and the reply fields do not show up. They work in other messages on that forum. I rebooted my browser, but the same thing happens. Is there

  • Steps for transferring data to extra tab fields

    Hi,       I have to populate target days from range of coverage to extra tab field. What are the steps I need to follow? First I need to use the FM EXIT_SAPLCMAT_001 to get the value on R/3 side and send to APO I think I need to create a file and giv

  • Connect wirelessly to another mac? yes or no?

    I have for years been able to connect one mac to another using a ethernet cable and going through the process of using the share option. But is it possible to connect and share files from one mac to the other by using the airport extreme cards wirele