The onDeactivate event handler does not work in InDesign CC. Why?

Hi guys.

I'm working on a script in Javascript for InDesign CC.

The big problem is that the onDeactivate event handler does not work.

Here is an example that works in InDesign CSx, but not in InDesign CC:

#target indesign
var w = new Window ("dialog", "Test onDeactivate");
var et_1 = w.add("edittext", [undefined, undefined, 300, 30], "Lorem ipsum");
var et_2 = w.add("edittext", [undefined, undefined, 300, 30], "Dolor sit amet");
var st = w.add("statictext", [undefined, undefined, 300, 30], "CONSOLE:\r\r", {multiline: true});
et_1.onDeactivate = et_2.onDeactivate = function(){
     st.text = "CONSOLE: I left the field with this text:\r\t«" + this.text +"»"; }
var b_ok = w.add("button", undefined, "OK");
w.show();

The script displays a dialog with text edit fields window 2: when a field loses focus (by clicking on the other), the "CONSOLE" shows the text of the old domain.

Adobe, please, solve this problem as soon as possible.

Thank you.

Giorgio

This is a bug, and it has been reported. Please report it to yourself, more the better reports. It's no good Adobe invite you in this forum to fix something.

Peter

Tags: InDesign

Similar Questions

  • JavaScript works with an alert, but does not work without it. Why?

    This happened to me before, but I was able to solve my problem. Now I'm not.

    Let me explain: I have a javascript function which I call when I double click on a line on a table:

    [code]

    function CallServ (evt) {}
    source var = evt.getSource ();

    AdfCustomEvent.queue (source, "call",
    {
    },

    (false);

    auxDblClick.call (this, source);
    }

    function auxDblClick (CBC) {}
    split var = src.toString () .split ('=');
    var idButton = split [1];
    var split2 = idButton.split(':');
    okButton = split2 var [0].concat(':');
    for (var i = 1; i & lt; (split2.length - 1); i ++) {}
    okButton = okButton.concat (split2 [i], ' :');)
    }
    okButton = okButton.concat ('dc_cb1');
    var comp = AdfPage.PAGE.findComponent (okButton);
    Alert (COMP);
    AdfActionEvent.queue (comp, comp.getPartialSubmit ());

    }

    [/ code]

    As you can see, my alert line is commented. If it is not commented, the "auxDblClick" feature works very well: it will print the model on the alert, and then it will perform the action of the dc_cb1 button. However, when I commented the alert function, it stops working.

    I have PartialTrigger set to "true" on my dc_cb1 button and the clientComponent is set to 'true '. I've also set to true ClientComponent on the table, but it does not work.

    So, why the function working with alert, but does not work with the alert off the coast? What Miss me?


    P.S: jdev version 11.1.2.4.0

    I found the solution:

    Before the "AdfActionEvent.queue (comp, comp.getPartialSubmit ());" line, I used the update function. Like this:

          var t = document.getElementById (okButton);
       
          t.Focus ();

    Now everything works fine

  • calendar for the week of jQuery does not work in the new version of firefox v42.0

    Hello
    Thanks for your reply.
    IAM develop on the issue that iam facing knowledge, events on the calendar for the week of jquery does not work in firefox version iam 42.0 faced to the problem that iam unable to change back or delete nominations that are displayed.
    For example if try clicking on one of the appointment generally a popup comes to change or to restore or remove the appointment but iam not getting that. But this feature does not work in lower versions of firefox (version 32.0 for example). Please check the jquery week calendar demo following URL looks like this:
    http://robmonie.github.IO/jQuery-week-calendar/full_demo/weekcalendar_full_demo.html

    I've just rescheduled lunch 12:00-12:15, so it seems to work on 42 Firefox on Windows.

    What is the latest version, where it has worked for you?

    Have you tested Mode Firefox safe to rule out the possibility of an extension conflict? See: Firefox in Safe Mode troubleshooting questions.

  • Bought two of the iTouch, one for my wife and one for me. In the Notes his has the "" symbol for the formatting and mine does not work. Any suggestions?

    I bought the iTouch two at a time, one for my wife and one for me. In the application 'Notes' my wife shows the symbol "+" to the formatting and mine does not work. Any suggestion.

    Could you please include screenshots of the so-called issue?

  • the software sticky password does not work.

    the Sticky Password plugin does not work in Firefox 37.

    Changed the product forum this thread is in Thunderbird in Firefox so no need to create a duplicate thread.

    It is an Extension in Firefox and not a Plugin like Flash or Java.

    You're too test is based on the Beta channel (currently at 37.0b3), and the Extensions like these tends to do not support the current version at most which is Firefox 36. www.mozilla.org/Firefox/All/

    In the Sticky Password software you can go in "parameters - supported browsers and install the extension" because I think that may be the case there are updates? https://support.Mozilla.org/en-us/questions/948577

  • Firefox does not (Cup) of the lower edge and the right edge of the graph. IE10 does not work.

    Firefox does not (Cup) of the lower edge and the right edge of the graph. IE10 does not work.
    Office Windows 7 2009 service pack 1 Firefox 26 Internet Explorer 10
    Flash player version 11.9.900.170 plugin 11.9.900.170 activex version used by Firefox

    Problem began late November when Miniclip.com forced updated flash player to version above
    -C' was when they started to play a video advertising in the game box before you could start.

    Have screen shots of IE10 and Firefox26 side-by-side clearly showing the problem - how these can be downloaded for see you? E-mail? Web site? This place seems to be text only?

    In the meanwhile the grandchildren and self have learned to use IE10 instead of Firefox that we prefer.
    Their House of Windows XP has same Flash Player in Firefox and it works fine.

    Downloaded two screenshots on Media Gallery.

    You can not attach a screenshot in the first row who starts a thread, but you can do it in subsequent responses.

    Try disabling hardware acceleration in Firefox (you will need to close and restart Firefox).

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    See also:

    Reset the zoom of page on pages that are causing problems.

    • View > Zoom > reset (Ctrl + 0 (zero); 0 + Command on Mac)
  • The date and time does not work.

    I have an iphone 5 c.

    The date and time does not work. This is the second time.  The first time was about 3 to 4 months again and now again after upgrade to iOs9.3.1.

    Even after trying to change it manually, time slows down or stops.

    Everyone has problems with their date and time?

    • Try a forced reboot: hold down the House and on the buttons until the unit turns off. Ignore the cursor off if it appears. Once completed, if it does not start on it own, turn off power with the key On. In some cases, it also contributes to double click the Home button and close all applications before restarting.
    • Restore factory settings (no backup)
    • Make an appointment at your local Apple store to have it checked.
  • The new tab key does not work.

    The new tab key does not work when I click it. I reinstalled FF but with no luck - any suggestions would be appreciated.

    What can a problem with the Ask.com toolbar (Tools > Modules > Extensions)

    See:

  • Ejection of the Replicator Express - II does not work

    The duplicator button eject does not work. I have laptop series TECRA M. downloaded the driver for duplicator of toshiba website support and reinstalled but of no use. I searched in all the forums, but did not find any thread for this problem.

    If anyone has any idea on this issue, please help. The button eject everything does and do not see an option in Windows 7 to eject the PC I did with IBM lenovo laptop with a docking station.

    Is - this top hat of Toshiba laptop what do you use?
    I want to say I put t knowledge how it works on other laptops but why you think it should work in the same way on laptop, you used before?

    You can remove your Tecra of docking station using gear hand placed on the upper side right?
    What happens after doing this?

    By the way: If you check the specs of this under system requirements port replicator s Win7 are not.

  • I keep seeing pop up ads powered by '' cn tatami '' whenever I have to navigate using Safari or open a link on the FB Adblocker app does not work for this. Any suggestions? There is no option to cross the pop-up ad that it redirects to various Web sites.

    I keep seeing pop up ads powered by '' cn tatami '' whenever I have to navigate using Safari or open a link on the FB Adblocker app does not work for this. Any suggestions? There is no option to cross the pop-up ad that it redirects to various Web sites.

    Cache and history of the site Clear settings - Safari -.

    (1232)

  • Why the Polish support page does not work?

    Why the Polish support page does not work?

    http://PL.consumer.Toshiba.EU/PL/support/home/support_home?

    I think the error message is pretty clear:

    + Service temporarily unavailable +.
    + The server is temporarily unable to process your request due to downtime or maintenance capacity problems. Please try again later. +

  • How can I get the airplay icon to appear? Changing the settings of firewall does not work

    How can I get the airplay icon to appear? Changing the settings of firewall does not work

    Hello Drjoe378,

    I understand that you do not see the AirPlay icon in iTunes on your Mac. If you have verified that your firewall is disabled or that the problem occurs regardless of the status of your firewall, there is a little more that can help return your ability to connect to AirPlay devices.

    1. Make sure you have the latest version of iTunes and Apple TV software.
    2. Connect your computer and other devices on the same network Wi - Fi. If you are using Ethernet, connect the two devices on the same router or hub. If you use the Wi - Fi and Ethernet, plug your device AirPlay the same router that your computer uses for Wi - Fi.
    3. Restart your computer, device AirPlay and network router.
    4. Because some Airplay devices include a power switch for AirPlay option, look for the option in the settings and make sure that the feature is enabled. Refer to the user guide of the device for more information.

    Use AirPlay to stream content from iTunes on your computer wireless
    https://support.Apple.com/en-us/HT202809

    All my best.

  • Microsoft Security Essentials - the planned-out scan does not work.

    In addition to the question about the scheduled scan output after upgrade to Windows 7 to McAfee.Microsoft Security Essentials series instead of McAfee. The scan-out plan does not work.

    Support McAfee tried to straighten my computer of conversation I understood the problem of the update disc. I want to ask a question to the update command:? many problems were very pushed us all after your update. How now to get out of this dung under the name Toshiba upgrades?

    Hey Buddy,

    To be honest I don t know what you re talking about exactly. What has to do with Microsoft Security Essentials McAfee?

    As far as I know it s recommended using a security program only. You must use a Microsoft or McAfee, but not both!

  • Webcam on the Satellite A200-175 does not work - error code 10

    Hi all

    I bought a Satellite A200-175 yesterday and I am trying to use the webcam, but it does not work. I searched the forum for possible solutions, but so far I have not found anything that solves my situation.
    The laptop came with a preinstalled Vista OS, but the software of the webcam was not preinstalled. So I downloaded the latest Toshiba download page doftware and installed.
    Subsequently, it still does not work and so I changed drivers for generic Microsoft (based on the advice of the forum).

    I tried to reinstall drivers (several times), but that did not help. Device Manager keeps giving me the error code 10 (device cannot be started).

    I'm a bit of idea, so any help would be appreciated!

    Hello Franca

    It's very strange because I installed the recovery image on notebooks P200 and U300 (both with the webcam) and I didn't notice any problem. After the first boot the cam will be recognized as new hardware and installed correctly.

    Have you installed some Messenger like Yahoo or MSN and try to use it with one of them?

  • Blue contours appeared and I can't control my iphone 5 s. I can't go to settings. I triple click on the button "home" and gives a message to go into settings and enter the password but I can't get to the settings. What does not work? Thank you

    Blue contours appeared and I can't control my iphone 5 s. I can't go to settings. I triple click on the button "home" and gives a message to go into settings and enter the password but I can't get to the settings. What does not work? Thank you

    The blue plan is switch control.

    s http://gettecla.com/blogs/News/15538916-what-is-switch-control-mode-in-apples-IO

    Triple click to get rid of him.

    "Siri to the rescue.  I said turn off the control switch. »

    Re: How to disable the switch control

    I don't get a request for an access code.  What is a school system?

    switch control

    Settings > general > accessibility > switching control

    R

Maybe you are looking for

  • Bionic: What is this icon?

    I just got a weird icon between the battery indicator and the hour on my status bar it looks like a square with a small line across the top (a bit like a battery icon) with the V of the Association in the middle.

  • Xbox 1 membership

    I bought an Xbox 12 month subscription 2 months ago and it has already said his time of execution of. What is happening and how to fix it. Is it a bug or a virus or just something really random. [Moved from Virus & Malware]

  • HDD SMART virus on my HP PC and lost my tab ACCESSORIES and restoration of the system.

    I have Vista pre-installed on my PC HP - has caught the virus in HDD SMART 2008, but it was removed. Now, I do my tab ACCESSORIES more and no longer have a point system - restore is just not there!  I get error code 08x004230F - something about a sha

  • Dell reference to address the flaws of his own making that endangers its computers?

    Hi all, I just read this article by warning of a breach of security for all laptops Dell and PC shipped since August 2015. I went to the support page for my Dell Inspiron 15 5000 2 in 1 and found nothing, no mention of this warning. Does anyone know

  • using both drives in win 7 (32/64 bit) who gathered at the time of purchase

    I BOUGHT WINDOWS 7 PRO UPGRADE DISC (S) AND INSTALLED THE FINAL VERSION 32 BITS IN A HP LAPTOP WHICH IS DEAD (BAD MB); I BOUGHT A NEW HP LAPTOP COMPUTER THAT IS 64-BIT AND WOULD LIKE TO KNOW IF I CAN INSTALL THE 64-BIT VERSION LEGALLY AND VALIDATE (A