Presence script stops working

Hello,
I have a multi-page dynamic PDF. Page 1 has a menu that allows you to hide the pages you do not want. There is a button to hide this menu. When the form opens the button works perfectly. However if I scroll to page 9 and use another button to add additional pages suddenly the button that only controls presence stops working completely.
The code (on mouse up) on the button on page 1 is:
if(employees.Page1.HideMenu.presence == "visible"){
    employees.Page1.HideMenu.presence = "hidden";
else {
    employees.Page1.HideMenu.presence = "visible";
(I tried a case statement also but the same thing happens).
The button that seems to break it has this code:
_InspireGroup.addInstance(1);
xfa.form.recalculate(1);
xfa.host.pageDown();
app.alert("You have jumped to the newly added Project Example page");
I can't figure out what the code on page 9 has to do with the code on page 1.
Can anyone help?

Hi,
The only thing I can think is that the addInstance is adding a continuation of Page1, so that there is now Page1[0] and Page1[1], so that the script doesn't know which Page1 is referenced in the script.
Try the javascript console to see if that is throwing up errors. Also maybe script out some of the lines in the addInstance script to see if that is cause the conflict, like the recalculate.
Otherwise would need to see a version of the form to see what is going on with the structure.
Good luck,
Niall

Similar Messages

  • Scripts stop working when extended with "additional features"

    I have a couple of scripts that work fine in both Pro and Reader, but when I Save As -> Reader Extended PDF -> Enable Additional Features, they stop working (in both Pro and Reader). Other scripts in the same form continue to work just fine. I'm at a total loss, and so are my IT folks (who admittedly aren't exactly form/JS/Adobe experts...)
    I've been fighting with this problem off and on for a week or so now, and I've tried a couple of different approaches - I'm a JS muddler, and I'm sure there are more effective ways to do what I want to do. But everything I try gives me a different problem . I'm going to try to separate out the different issues in different posts...but I'm getting pretty confused!
    For what it's worth, the problem scripts are on the first and last master page, while the ones that work are on regular pages.
    The goal is to reuse a partially filled-out form for several different phases of an approval process. Each version gets a different title, and an additional subform is visible during the 2nd, 3rd, and 4th phases.
    Here's the overall workflow:
    Phase 1
    The form starts out with the Phase 1 title and with the additional subform "hidden."
    A remote user fills out the form and returns it to the program coordinator.
    Phase 2/3/4
    The coordinator saves a copy of the form with a different name.
    The coordinator checks a "For admin use only" checkbox to display a radio button group. Each option changes the title and sets the additional subform presence to "visible."
    The coordinator unchecks the "For admin use only" checkbox to hide the radio buttons.
    The title is in a text field. The scripts change the rawValue of the field for each option.
    In this case, I have the following script in both the initialize and calculate events of the text box:
    if   (S_SelectTitle.S_Actions.RB_SelectTitle.rawValue == 2)
         this.rawValue = "Phase 2";
    else if (S_SelectTitle.S_Actions.RB_SelectTitle.rawValue == 3)
         this.rawValue = "Phase 3";
    else if (S_SelectTitle.S_Actions.RB_SelectTitle.rawValue == 4)
         this.rawValue = "Phase 4";
    else
         this.rawValue = "Phase 1";
    and similar code in the initialize and calcuate events of the subform to make its presence "visible" or "hidden." (I've used this initialize/calculate event strategy before, it's always worked fine. But I"ve run into problems with it in one of the alternate approaches i've been using on this form, so I"m totally open to other ways of doing it...)
    Before I extend the form for Reader, it works fine. The title changes correctly depending on which button is selected, the new subform appears at the end, and the radio buttons go away when the box is unchecked.
    After I extend it for Reader, nothing works except the checkbox. The title doesn't change, and the subform never appears.
    Help? Thanks in advance!

    Well, it seems that interactive objects on master pages are problematic. Using a few message boxes, we discovered that the Initialize event fires each time a radio button on a master page is selected, but not when the radio button is in the body of the form.
    So each time we clicked the radio button on the master page, the Initialize event set the value of the exclusion group right back to the default value (which was null, in this case). So the title never changed, because the radio button setting didn't stick.
    For this form, I figured out a way to remove the radio buttons from the master page. Not only do the titles in the headers change correctly, the form also works with the Reader extensions enabled!
    I'm not sure which issue was hanging me up -- the buttons on the master page or Reader extensions -- or if they're tied together somehow. But the moral of the story for me, anyhow, is no more buttons on master pages. Hope this helps someone else!

  • How do I untick "Don't ask again" on Script Stopped Working

    I started getting a pop up telling me something similar to "A script has stopped working, do you want to stop it or continue" with two buttons accordingly. Also there was a tick box saying "Don't show this again".
    I got sick of it happening so regularly and having to tick the Continue button - well it didn't tell me which script had stopped working and I wanted to Firefox to keep working and have all my plugins to continue working so clicked the Continue button, it would be good to know which script is not working so that it might help find out what's wrong and why it's not working... it's like most things that go wrong on PCs, "There has been and error, ---- will now close" Tell us what the error is so that we can report it to the programmers and they can fix it !?!?!?!?!
    Anyway, I ticked the "Don't ask again" and clicked Continue...
    Now Firefox pauses for about 5 seconds and sometimes longer every so often, and occasionally I see what appears to be this warning dialogue box flicker onto the screen for a split second...!?
    How do I untick this box so that I get the buttons back so that I can stop the script working and then I'll be more likely to find out what's making this script not work by some part of Firefox or a plugin then not working and tell someone about it, rather than making things slow down so much...
    I didn't know I had all the plugins listed below installed, where do they come from as I don't remember telling the machine that I've got Netscape- which I haven't as far as I know...?!
    == This happened ==
    Not sure how often
    == I ticked the box telling it not to tell me again and continue...

    reset "dom.max_script_run_time" under about:config
    http://support.mozilla.com/en-US/kb/warning+Unresponsive+script

  • Script in JavaScript does work properly on every web browser apart from Firefox (After FF update the script stopped working properly).

    Hello,
    script was always working correctly on every web browser. Unfortunately after (probably) last update Firefox stopped handling with it.
    Script is the part of forum based on popular MyBB (http://www.mybb.com/). I put a screenshoot below, which should easily show how did the script work.
    http://screenshooter.net/data/uploads/ug/tg/dyre.jpg
    After clicking on any icon (e.g. bold "B") it shows "[undefined=undefined]" and then clicking shows no effects.
    Errors from "WWW console" after icon clicking:
    TypeError: mnu is undefined - line 641
    TypeError: tag is undefined - line 1163
    Here I posted problematic script:
    http://pastebin.com/D8HmLEKK
    Best regards!

    See [[/questions/939971]]

  • Scripts Stopped Working in Mac OS 10.10

    I have an html panel that I created for my users. It mostly contains shortcut buttons for menus items and tools. I have to buttons that invoke scripts that have a number of steps. Prior to Mac OS 10.10 they worked. Now they do not work (also they do not work in some Window 7 computers). I do have Action scripts for the two scripts that I have my users install and they work as expected.
    Has anyone experienced this issue?
    Thanks in advance - Sam

    I am having the same issue on a clean install. I wish we had a solution. I have reported the bug to Apple, but I have not seen a fix yet. Finder's search does not work either and all my files is empty.

  • Click Event Script Stopped Working. Please Help!

    I must have forgotten a step in making an email button that will pull the data from a form field into the subject line of an email and let me create the body of an email.
    I am taking a Button and adding a Click event of:
    var Mailto = "[email protected]";
    var BetreffSubject = Legal_Name.rawValue;
    var NachrichtMessage = "This is line 1.\r\rConfidentiality Notice!\rThis is the start of the third line ";
    var Mail = "mailto:" + Mailto + "?Subject=Site Report for " + BetreffSubject + "&Body=" + NachrichtMessage ;
    event.target.submitForm({
    cURL: Mail,
    bEmpty: true,
    cSubmitAs: "PDF"
    When I click on the button, nothing happens.  what am I doing wrong?

    Hi RudyLou36,
    Please download the file from https://workspaces.acrobat.com/?d=0n*uLjnmLGX8VlHRCW5n7A and check the click event of "Control email through script" button.
    Regards,
    Ratnesh

  • Help! Multiple accordions/javascripts on page. Script stops working

    Hi, all
    I have an accordion in the leftnav. I would like to add functionality to this accordion, but will put that in a separate discussion.
    The ugly problem right now: I added a second accordion to the right sidebar and it is not performing well at all:
    http://mayakaimal.com/mayakaimal2/prod-rs-tk.html
    I KNOW there must be a plethora of problems with how the js is handled, but don't know enough to fix it. I have added at bottom of the page: useFixedPanelHeights: false.
    The panels are simply overlapping.
    Any advice greatly appreciated!!
    mookie

    Bob IS my uncle!
    Question:
    Can I slim it down even further?
    Before:
    <!-- InstanceBeginEditable name="leftnav defaultPanel" -->
    <script type="text/javascript">
    var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false, defaultPanel: 0 });
    </script>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="Accordion2b" -->
    <script type="text/javascript">
    var Accordion2 = new Spry.Widget.Accordion("Accordion2", { useFixedPanelHeights: false, defaultPanel: -1 });
    </script>
    <!-- InstanceEndEditable -->
    After:
    <!-- InstanceBeginEditable-->
    <script type="text/javascript">
    var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false, defaultPanel: 0 });
    var Accordion2 = new Spry.Widget.Accordion("Accordion2", { useFixedPanelHeights: false, defaultPanel: -1 });
    </script>
    <!-- InstanceEndEditable -->

  • Pkg's made by PackageMaker from Xcode4.2 stopped working after Mountain Lion 10.8.1 upgrade!

    We have some pkg's that used to install fine across Snow Leopard, Lion and Mountain Lion.
    Those pkg's were made from PackageMaker that came with Xcode4.2.
    Since last week's Mountain Lion 10.8.1 upgrade, the pkg's preflight/postflight scripts stopped working
    on Mountain Lion machines, but still work with Lion and Snow Leopard.
    The current workaround we use is to produce the pkg using PackageMaker that comes from Xcode4.4 auxiliary tools.
    These pkg's work fine on all mentioned OS X.
    I think this should be either a bug in 10.8.1 upgrade or a change of policy.
    Can someone reproduce and clarify?
    Thanks!

    You are not alone!!
    Same problem with Plantronics.
    I just bought their Audio 648 Stereo USB Headset and have exactly the same issue you mention at the outset:
    Essentially, while my [Plantronics Audio 648] Headset is recognized in the list of devices in System Preferences > Sound, it doesn't do anything in terms of outputting or inputting audio
    So Apple, what are you going to do?...
    A lot of third party accessory manufacturers must be getting quite frustrated at the numer of complaints they get from Mac users, when it seems its the Mac OS which is to blame...

  • Script not working

    Hi - I am a coder of javascript-driven dhtml online games. The latest one I did is called "Difference" @ http://www.mah-jongg.ch/difference/difference.html and has been tested in MSIE, FF (Mac, Linux, Win), Chrome and Opera, and is working fine in all of them. Yet, not in Safari (both for Mac and Windows): The first difference can be clicked, and then the script stops working.
    Techs: The game is written in dynamic HTML, and its mechanics are based on the .innerHTML property of the "screen" object, on dynamically generated <area> tags the coords of which are stored in a three-dimensional array at the head of the script and, after a correct click, the positioning of css-formatted semi-transparent png images in order to mark the difference in question. The script can be found @ http://www.mah-jongg.ch/difference/difference.js
    Any ideas? Hints are most welcome! Thanks!
    twb

    So I still think it has something to do with the HTML dynamically generated by my script...
    maybe - but your html/js seem to work as expected with newer versions of webkit/webcore/javascriptcore, so it's possible that your code is ok & the release safari is at fault.
    Naturally you'll want it to work now, so I can only suggest checking the fixed bugs @webkit & seeing what matches up, then finding another way to get that function.

  • Lion Mail Search Stopped Working

    The search in my Lion Mail doesn't work at all. When you enter some text you get nothing. This is on my Mac Pro. On my Macbook Pro it works. I even deleted all the mail and let it reimport. I even reindexed spotlight. Next step is to remove all the accounts and start over. I stopped using Apple Mail because of this before and chose Thunderbird which works perfect, but Lion Mail came out so I thought to give it a try and it still doesn't work. I have to be able to search.

    Brilliant, works every time!
    Actually, you were the one who found the solution by trying the following statement:
        set CS_Messages to every message that subject contains "Daily Summary"
    Have you any idea why my original script stopped working, just like to know to stop this happening again.
    Since the original script has always worked flawlessly on my computer under OS X 10.8.1, the only thing I can think of would be another application interfering with Mail or AppleScript in your system.
    By the way, the following version of the script might be somewhat faster when you have a huge number of messages in your mailbox:
    set theContents to {}
    set theContentsRef to a reference to theContents
    tell application "Mail"
        tell mailbox "CS Notepad"
            tell mailbox "Test"
                set CS_Messages to every message that subject contains "Daily Summary"
                repeat with thisMessage in CS_Messages
                    copy content of thisMessage to the end of theContentsRef
                end repeat
            end tell
        end tell
    end tell
    theContents
    See the AppleScript Language Guide, Class Reference, list (p. 110 in the PDF version) : “For large lists, it is more efficient to use the a reference to operator when inserting a large number of items into a list, rather than to access the list directly.”
    Message was edited by: Pierre L.

  • The restore session has stopped working. It tries to load, but then gives an error message that the script is not working and will not actually show the previous tabs I had open.

    I count on using the Firefox restore session feature. But it's stopped working. For the past couple of days, it hasn't worked a single time. (I haven't changed anything on my PC.) It just suddenly stopped working.
    Now it gives me an error message that the script has stopped working. It gives me a couple of options. I'm not sure of the exact wording, but one option is to stop the script and the other is to keep trying. But the keep trying never works.
    I have to stop the script, hence, the list with my previous tabs never comes up.

    Which file is mentioned as the cause of that script error?<br />
    Is that a file with a chrome protocol?

  • I upgraded to Firefox 4 and my toolbar didn't load, now Firefox won't start automatically saying a script has stopped working. how can I fix this?

    Before Firefox will load I have to stop a script message that appears saying that the script for this page is either busy or stopped working. Once I hit stop Firefox will load as normal but without doing this step it will not load at all. Once it is loaded the toolbar has not been loaded and I am told to reinstall the toolbar but I have not been able to do so.

    http://www.websonic.nl/nieuws/firefox-4-nu-al-te-downloaden-21704

  • I get the "unresponsive script" message now for nearly all sites, and sometimes this is followed by the popup box saying that the "plugin contain for Firefox has stopped working."

    Many sites now say that a script is unresponsive. And by unresponsive I mean that the whole browser slows to a crawl and it can take ~20 minutes to get 2 pages loaded.
    Also, I sometimes get a popup window saying the the plugin container has stopped working.
    This whole issue is making Firefox unusable. I cringe to say it, but I'm currently in IE. :-/

    See http://kb.mozillazine.org/Plugin-container_and_out-of-process_plugins

  • Working script moved - stopped working.

    I had a button when clicked, it would replace a different moviclip.
    This worked until I made the bulk of the code into a function and moved it to the layer, and then tried to call the function from the previously mentioned button. It generates no errors, but it stopped working.
    Hierarchy:
    Layer 1 > U1 > image
    Original button script:
    on (release) {
        var theDepth:Number = _parent.U1.image.getDepth();
        _parent.U1.attachMovie("K3E", "image", theDepth);
    That worked. Here is what it is now, and doesn't work:
    Layer 1, Frame 1:
    function swapImage(imageName) {
        var theDepth:Number = _parent.U1.image.getDepth();
        _parent.U1.attachMovie(imageName, "image", theDepth);
    Button script:
    on (release) {
         swapImage("K3E");
    What is the problem?

    Hmmm. That's odd. I've had handlers in movieclip buttons before pointing to functions on the layer and didn't need to prefix with _parent.
    Anyway, that helped, though I also had to remove various _parent prefixs within the function.

  • How do I fix a jQuery plugin stops working when edgePreload.js script is attached?

    I have a jQuery plugin on my site that I really want to use (Quicksand). I built the site in Dreamweaver, and now I want to animate the elements in Edge Animate, but I noticed as soon as I did anything, the Quicksand plugin stopped working! I troubleshooted for a while and discovered that it was simply the attachment of the edgePreload.js file that kept it from working... how do I fix this?
    I have uploaded 2 pages to show what I'm talking about:
    http://www.ruesterprod.com/edgeTest_a/ - my quicksand plugin works fine here (Click the 2 grey buttons to see what the Quicksand plugin is doing) I commented out only the part where edgePreload.js is attached...
    http://www.ruesterprod.com/edgeTest_b/ - This one I left the edgePreload.js script attached and now the 2 grey buttons don't do anything...
    Please help!
    Thanks all!

    {B635abd67-4fe9-1b23-4f01-e679fa7484c1} is an extension that is related to Yahoo. You didn't bother to provide your "Troubleshooting Information" so I can't guess the name of that extension. You need to figure out which extension that is, and disable it.
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

Maybe you are looking for