Captivate 8 - Javascript does not work in runtime

Hello,
I have been playing with using javascript within Captivate, testing both Captivate 7 and 8.  Using simple code attached to a smart shape button - three alert statements - , I proceeded to test the javascript in both the preview and run time mode.  here are my results :
Captivate 7
     HTML5 (preview) - only the last alert statement executes    
     HTML5 (published, runtime) - only the last alert statement executes   
     SWF (preview) - all three statements execute      : )
     SWF (published, runtime) - none of the three execute  
Captivate 8
     HTML5 (preview) - only the last alert statement executes 
     HTML5 (published, runtime) - only the last alert statement executes
     SWF (preview) -none of the three execute
     SWF (published, runtime) - none of the three execute
Can someone help me out with this?  I would like to my javascript to work in the published versions of both SWF and HTML5 for at least Captivate 8....
Thank you!

Hi Rscharfer,
As the alert dialog box for HTML5 captivate is not modal, the javascript will not pause after executing the first alert, hence what is happening in your case is that all the three alerts are printed one by one over each other and you are just able to see the last one. when you click on the last one the click goes to all the alerts and closes them all.
try this one, put this script on javascript execute action on a button.
setTimeout(function(){alert('Hello')},300);
setTimeout(function(){alert('Shriyansh')},10000);
setTimeout(function(){alert('Agnihotri')},30000);
The above script will prove you that all the three are executed and you will get all the 3 alert boxes one after other with intervals as 300ms,10secs and 30 secs.
Let me know if there are queries on this.
Thanks and Regards
Shriyansh
Adobe Engineering Team.

Similar Messages

  • Javascript does not work in web browser

    Hello friends.
    I have a problem with javascript in my Captivate project.
    This script only works in preview in Captivate, but does not work in web browser (IE 9, Mozilla, Chrome).
    Anybody knows why?
    Thank you for your answers.

    Common JS interface
    That is the official documentation for JS in Captivate 8. For more information, have a look at Jim Leichliter's website: CaptivateDev.com - eLearning Development with Adobe Captivate

  • Application written with JavaScript does not work in newer versions of Firefox

    I am unable to upgrade past Firefox 3.6 because an application we use does not appear to work properly any any newer version. The application is CA Service Manager and is based on JavaScript. The pages display properly, but none of the links in the pages seem to work. When I click on a link, nothing happens. I have tried restarting in safe mode and resetting the profile, but neither of those helped any. Is this just a setting I need to change?

    Would you be able to at least provide a link to the site you are having issues with, so that more experienced users can crack a shot at it? If not, please open a support ticket directly with the Mozilla team. There should be a "Report broken site" function in the Help menu of Firefox as well.

  • Javascript does not work in Adobe 9 Reader

    I have created a Parent PDF Index with attachments. Next to each document name, I have 3 icons (PDF, Print and Email icons). The PDF Icon has a basic link: "Go to page in another document" The Print Icon has the "Go to page in another document" link and a javascript: app.execMenuItem("Print"); -When someone clicks the Print Icon, the attached document opens and the Print Box opens to print the attached document. The Email icon has the "Go to page in another document" link and a javascript: app.execMenuItem("AcroSendMail:SendMail"); -When someone clicks the Email Icon, the attached document opens and is automatically attached to a blank email. These links and javascripts worked perfectly in Adobe 8 Professional, Adobe 7 Reader and Adobe 8 Reader. However, the Print and Email functions are not working correctly in Adobe 9 Reader. The Print Icon is clicked and the Print Box opens first and the document opens last (therefore, it is printing the Index not the attached document). Same thing with the Email Icon...it is emailing the Index not the attached document. Is there anything I can do to fix this issue? Thank you in advance for your help!

    Security restrictions changed for execMenuItem(). Here's what the documentation says about it:
    "(Acrobat 8.0) The execution of  menu items through execMenuItem method  is restricted to a short list of safe menus. The execMenuItem method will silently fail if a named menu  item is executed that is not on the safe menu list. Menu items may be removed in future releases, or their behavior may change.
    To see the list of safe  menus, create a form button, and in the Button Properties dialog box,  select the Actions tab. From the Select Action list, select “Execute  a menu item”. Finally, click the Add button to see the Menu Item dialog  box with the list of safe menus.
    The app.execMenuItem method may be executed, without  restriction, in a privileged context, such as in the console or in a  batch sequence. For folder JavaScript, app.execMenuItem can be executed, again, without restriction,  through a trusted function with raised privilege. See Example 4, below.
    Another approach to  executing app.execMenuItem without  restriction is through Sign & Certify. When the document author  signs and certifies the document, privileged methods can be executed  from a non-privileged context provided the document consumer lists the  author’s certificate in the list of trusted identities and the consumer  trusts the author for execution of embedded high privilege JavaScript."
    See here: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/html/w whelp.htm?context=Acrobat9_HTMLHelp&file=JS_API_AcroJS.88.131.html#1995136

  • Captivate Certification does not work for at least another week

    Hi there,
    yesterday I was supposed to take my class for the Adobe Captivate Certification (ACE Exam).
    But Pearson Vue did not manage to send the test over two hours.
    Last comment was:
    We will look into this, but the next test will not be within the next week.
    I had to laugh a bit, because I was trying to take an eLearning exam about eLearning creation software and the eLearning system did not work.
    So - for everyone who scheduled a class, you probably want to check back, if it is working.
    Pearson VUE did not contact me until now, so I cannot tell you any more.
    Best TD

    TD,
    Is it Captivate 5 certification or is it still the old Captivate 3 certification that they offer?
    /Michael
    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

  • Print range with JavaScript does not work on Mac

    Problem: I am using this.print({bUI: true, nStart: 1, nEnd: 2, bSilent: false}); to print a range of pages. Works perfectly on Reader 8 and 9 and AcroPro 8 in Windows XP. Works in AcroPro 8 on OSX 10.4 but not in Reader 8.1.2 or 9 in 10.4 or Leopard.
    What happens: the print dialogue opens, the range is selected correctly and the pages radio button is selected, but the preview shows the first page, and clicking to print prints the whole document.
    Workaround: making any change - even adding and deleting a space - to the print range in the print dialogue immediately causes the preview to switch to the desired pages, and the range now prints as desired.
    Have submitted this as a bug, but wondered if there is another way to do this from a button, as we're on a deadline.
    Thanks

    See this: http://windows.microsoft.com/en-US/windows-vista/Take-a-screen-capture-print-screen
    OR http://www.sevenforums.com/general-discussion/75540-print-screen.html
    Granted this is not directly for Windows 8 but give it a try.
    {---------- Please click the "Thumbs Up" to say thanks for helping.
    Please click "Accept As Solution" if my help has solved your problem. ----------}
    This is a user supported forum. I am a volunteer and I do not work for HP.

  • Captivate Patch does not work

    Hello,
    I got a problem. I have try to install the patch for Captivate 4 . That cannot be done. Is it because I got the German version ? Is the patch only for the us/uk version?
    The warning shows "Captivate 4 is not insalled" - this is not true?!
    Any Solutions?

    Hi Rumbalotte,
    Try clicking on the link I have included below, scrolling down to the bottom of page. Here you should find a link to download the localized version of the Adobe Captivate 4 patch for German users.
    Adobe Captivate Support Center 
    HTH
    Regards - Mark
    Visit the macrofireball blog

  • Javascript does not work in any browsers

    Hello all,
    Have had this problem for about five months now, not sure when it started. Essentially Javascript actions don't seem to work in browsers. This is most evident on a site such as Reddit (www.reddit.com), where, even logged in, the UP/DOWN voting arrows simply don't work.
    I've tried Safari, Chrome, Opera, and Firefox and the problem persists, telling me it is a system issue. I've since upgraded to Lion and it persists.
    I know I can just wipe the system and start from scratch but I'm simply too busy to deal with the days of lost productivity. Can anyone give me some leads on where to look?
    Thanks!

    The javascript detection script AC posted properly detects the browser version and operating system on all browsers.
    That's not the point, though...  some sites may be coded specifically for, say, Internet Explorer, which means they'll only work properly on Windows.  This is extremely poor design, but it happens.
    Are you having trouble with ALL JavaScript, or just on certain sites?  If you're not sure, try visiting one of my photo galleries:
    http://www.reedcorner.net/thomas/photos/nature/
    When you click on one of the photos, it uses JavaScript to display a pop-up image showing the image at a larger size.  That code should work in Safari...  I just double-checked and it does work in Safari 5.1 under Lion.  If it works for you, you're seeing a problem with certain sites, not with your machine as a whole.

  • Why  javaScript does not works within ADF-jsf regions ?

    Hi
    thakn you for reading my post
    i have problem with running some flash and js in my adf faces page.
    the html files that contain this flash/javascript stuff works fine (in my application) but when i try to use them in jspx file i get nothing , here are some samples :
    heml file :
    <html>
    <head>
    <title>Preview</title>
    </head>
    <body>
    <link href="./jsmenu01.css" type=text/css rel=stylesheet>
    <script language="javascript" src="./jsmenu01cfg.js"></script>
    <script language="javascript" src="./jsmenu0.js"></script>
    <div id=jmbti_div></div>
    </body>
    </html>jspx file : which is a region
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:afc="http://xmlns.oracle.com/adf/faces/webcache"
              xmlns:af="http://xmlns.oracle.com/adf/faces"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
              xmlns:afi="http://xmlns.oracle.com/adf/industrial/faces"
              xmlns:graph="/webapp/graph.tld"
              xmlns:c="http://java.sun.com/jstl/core">
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <af:regionDef var="menuRegion">
    <link href="./jsmenu01.css" type="text/css" rel="stylesheet"/>
    <f:verbatim>
    <center>
    <script language="javascript" src="./jsmenu01cfg.js"></script>
    <script language="javascript" src="./jsmenu0.js"></script>
    <div id="jmbti_div"></div>
    </center>
    </f:verbatim>
      </af:regionDef>
      <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_segments_menu-->
    </jsp:root>why it should be like this ?
    putting this region in the page will cause all elements below this region not to render and show.
    thank you for your help.

    Why do you want to use a h:commandButton and not an <input type="button"> or a <button>? I don't think that you want to execute a backing bean action. Anyway, in this case you can also add return: false; to the onclick event so that it prevents the button from submitting the form to the server.

  • Rtexprvalue true does not work

    I write a tag ,it works well( tomcat 5.5 ,jdk5):
         <u:repeat num="5">
                   ${count} of 5<br>
              </u:repeat>
         <%
              request.setAttribute("number",2);
         %>
    but when I use it like this:
              <u:repeat num="${number}">
                   ${count} of 5
              </u:repeat>     
    i got the error:
    NumberFormatException: For input string: "${number}"
    It seems the rtexprvalue does not work at runtime.
    tag class:
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.tagext.SimpleTagSupport;
    import java.util.HashMap;
    import java.io.IOException;
    public class RepeatSimpleTag extends SimpleTagSupport {
         private int num;
         public void doTag() throws JspException, IOException {
              for (int i = 0; i < num; i++) {
                   getJspContext().setAttribute("count", String.valueOf(i + 1));
                   getJspBody().invoke(null);
         public void setNum(int num) {
              this.num = num;
    TLD:
         <tag>
              <name>repeat</name>
              <tag-class>boc.common.tags.RepeatSimpleTag</tag-class>
              <body-content>scriptless</body-content>
              <variable>
                   <description>Current invocation count (1 to num)</description>
                   <name-given>count</name-given>
              </variable>
              <attribute>
                   <name>num</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
              </attribute>
         </tag>
    then I change the code to:
         public void setNum(String num) {
              this.num = Integer.parseInt(num);
    still got the error
    org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/spring/userauth.jsp:22
    19:           request.setAttribute("number",2);
    20:      %>
    21:      
    22:           <u:repeat num="${number}">
    23:                ${count} of 5
    24:           </u:repeat>          
    25:           <u:repeat num="5">
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    root cause
    java.lang.NumberFormatException: For input string: "${number}"
         java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         java.lang.Integer.parseInt(Integer.java:447)

    I set <el-ignored>true</el-ignored>
    change it to false and all is ok

  • Android mobile does not work with submit fdf format

    I want to gather data by mobile device (Android) as JavaScript does not work well in this environment, I intend importing the gathered data into a report PDF form with JavaScript functions etc., however the Acrobat mobile reader does not appear to work with the submit function for sending data (FDF format) by E Mail.
    We are using Acrobat XI in most cases to gather this data and this works well, however we are experimenting with mobile options which are very limiting, and therefore we thought by just gathering the data on a mobile device we could import it into our working windows pdf form, our trials using this concept in a windows environment work, but we stumbled once we found that the submit button does not work in the android reader to send the FDF data.
    Does anyone know of a work around?
    Regards Mike

    FormsCentral can be a bit confusing, so I'll try to clarify some things. It allows you to work with two completely different types of forms: web forms and PDF forms. Web forms are HTML forms and are hosted on the FormsCentral server and loaded into and submitted via the user's browser, so web forms do require internet access.
    FormsCentral can also process submissions from PDF forms, and the forms can either originate from Acrobat or the FormsCentral designer, either the desktop app that comes with Acrobat 11 or the browser-based app. The FormsCentral designer allows you to create PDF forms with simple layouts, whereas Acrobat gives you much more flexibility. Designing a PDF form in FormsCentral can be helpful if you want to be able to use the same form for both a web form and a PDF form, allowing to to take advantage of each type at the same time, but you are not limited to PDF forms that are created by the FormsCentral designer.
    Regardless of how the PDF was created, it can be set up to submit the form data to the FormsCentral server, which is done using the same format as a web form. It is done securely using HTTPS. There are certain features that are supported with PDF forms that aren't supported by FormsCentral, but this is usually not a problem. The most significant limitation is the 500 field limitation, so some larger forms aren't possible.
    Once you have a PDF form created in Acrobat, you simply import it into FormsCentral and it gets uploaded to the FormsCentral server, where it is Reader-enabled, a submit button is automatically added, and is then downloaded so you can distribute it by placing it on your web site, sending by email, etc. So unlike web forms, FormsCentral does not host them for you.
    It is possible to use Acrobat to modify the PDF that you download, first by selecting in Acrobat "File > Save a Copy", opening the copy, and making the changes. This is often done to change the submit button (size, location, other properties) of the submit button that gets added. You can then Reader-enable in Acrobat if needed and distribute the form.
    Since it's a normal PDF form that is Reader-enabled, Reader users will be able to open it, fill it in, and save it at any time using Reader for Windows/Mac or Reader for Android/iOS. The latter currently only support submitting via email or to FormsCentral, as opposed to your own web server. Once the user has access to the internet, they can open the form and press the submit button. If the submit is successful, the FormsCentral server returns a response so the user gets some feedback, unlike with email "submits".
    Each submission is automatically stored in the responses table, which you and team members can view at any time. An individual response can be downloaded as a filled-in PDF, or you can download the entire table and import the data into a spreadsheet for further analysis. As mentioned earlier, you can set it up so that you and others can receive an email for each submission, and it can include the form data in the body of the email if wanted.
    Post again if you have any questions, or go to the FormsCentral forum here. The forum is generally very good, but sometimes questions about PDF forms are not answered entirely accurately, so it's sometime helpful to post here too.

  • Form does not work

    Hi
    I use Adobe Livecycle Designer7.0 English and Acrobat7.0.8 Japanese. I made forms to upload to Workflow Server. One form I made does not work at all when the form is opened in the Form Manager.
    It is strange that the PDF preview of the Designer works well.
    1. Page Counter
    In the master page of the form I set a page counter field from the custom library. In the preview it works well but when the form is opened from Form Manager it does not work. It looks like "Page ##/##".
    2. Font is not shown
    I put a button in the form. The font of the button is set to "MS UI Gothic", but when the form is opened from Form Manager the font of the button is "KozukaMincho".
    3. JavaScript does not work
    I wrote javascript to change the caption of fields like this.
    ----- form1.#subform[0].Button1::click - (Javascript, client)
    FieldA.rawValue = "test";
    FieldB.rawValue = "test2";
    This script does not work too when the form is opened.
    These issues are basic but I do not know where is wrong. Because no error message appears when I test the form in the PC.
    Please advise about these issues.
    Thanks,
    Akira

    Hi Jared,<br /><br />I am very glad to read your reply. <br />I added a button with the script you wrote in previous reply and found that Form Manager changed the root tag. <br /><br />The xsd file I define to the data is like this<br /><br />b <Message>  //rootnode name <br /><br /> <Heade></Header><br /> <Contents><br />  <FieldA></FieldA><br />  ......<br /> </Contents><br /> <Footer><Footer><br /></Message><br /><br />So, I set the structure of the form like this.<br /><br />b <Message>          //This is name of contents area<br /><br /> <Header></Header> //Subform name<br /> <Contents>        //Subform name<br />  <FieldA></FieldA><br />   ......<br /> </Contents><br /> <Footer></Footer> // Subform name<br /></Message> <br /><br />But the saveXML script write out like this:<br /><br />b <fields><br /><br /> <Header></Header><br /> <Contents><br />  <FieldA></FieldA><br />  ......<br /> </Contents><br /> <Footer></Footer><br /></fields> <br /><br />So I changed all of the Javascript using relative path and I upload this form again to the FM, but this form does not work...<br />I am not sure that it must be the same name between the rootnode of the xsd file and the name of the contents area. <br /><br />Jared and all, would you let me know whatever you find about this issues.<br /><br />Best regards,<br />Akira

  • Javascript does not run properly in Firefox

    Firefox does not run javascript properly.
    For example:
    http://vk.com/app2622342_40916334#NEW/comp1427
    Comment form does not run at all in Firefox ( the last version = 20.0.1)
    but runs OK in Opera.
    WHY?
    Mozilla still is HALF-DONE SOFTWARE!!!!!!!
    WHEN YOU DO IT IN A GOOD WAY?

    I have javazcript-enabled = TRUE in my about:config. So your comment did not solve my problem. I noticed that javascript does not run properly in some websites (forms in vk.com) but those forms run OK in OPERA - how can you explain this!?
    And I have no errors in the Web Console (Firefox/Tools > Web Developer).
    I wrote you a link to the page where javascript does not work.
    ( you need to login to vk.com to see that page
    http://vk.com/app2622342_40916334#NEW/comp1427
    )

  • Hi, I have a MAC (version 10.10.2) and installed Creative Suite one year ago. Now I want to open the Illustrator, but it does not work. It says I should install old Java SE 6-Runtime-Version to open „Adobe Illustrator CS6". Where can I find it? Thanks for

    Hi, I have a MAC (version 10.10.2) and installed Creative Suite one year ago. Now I want to open the Illustrator, but it does not work. It says I should install old Java SE 6-Runtime-Version to open „Adobe Illustrator CS6“. Where can I find it? Thanks for your answer! Jana

    Prompted to install Java SE 6 Runtime | Mac OS 10.9
    Mylenium

  • Want to set mailto for google apps;tried editing the gecko...mailto.2.uritemplate as per instructions found on web; set 3 related config values to "true" as per instructions; does not work; tried javascript method without success

    I want to set the mailto app for google apps gmail.
    I tried editing the gecko...mailto.2.uritemplate as per instructions found on web (https://mail.google.com/a/MYDOMAIN/mail/?extsrc=mailto&url=%s.
    Set 3 related config values to "true" as per instructions (network.protocol-handler.expose.mailto ; network.protocol-handler.warn-external.mailto ; AND, third, gecko.handlerService.allowRegisterFromDifferentHost.
    Does not work, no Google Apps in the mailto app spot.
    Tried javascript method in address bar without success:
    javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/a/MYDOMAIN/mail/?extsrc=mailto&url=%s","Google Apps GMail")
    Any light anyone can shed will be appreciated. Cheers, jlf

    Great howto Steve! This further increased my understanding of the MVC patterns used by BC4J.
    Some remarks:
    [*]Select New Business Components...
    This should be 'New Business Components Package', or you won't be able to add business components.
    ename as "Name",
    sal as "Salary"
    from emp
    where empno = ?That should be deptno.
    [*]Select the EditEmpsInDepartment view objectThat should be EmpsInDepartment.
    Greetings,
    Ivo

Maybe you are looking for

  • In need of a script to backup FCP project files

    I am in desperate need of something that will search through all of my network drives, find Final Cut Pro project files, and copy them to a folder on my desktop. From there I can burn that folder onto a DVD every week for backup purposes. I really do

  • Custom s:ToggleButton Skin

    I started with a copy of the default skin class. The lines:     <!-- text -->     <s:Label id="labelDisplay"              textAlign="center"              verticalAlign="middle"                 maxDisplayedLines="1"              horizontalCenter="0" v

  • Problem with modifier keys in InputEvent

    I am trying to override DefaultCellEditor.isCellEditable() such that only unmodified double-clicking on my table cells will start edit. Naively, I thought this would be simple: cast the received EventObject to, say, an InputEvent and then query its m

  • Where is the ADF_tutorial_setup.zip?

    http://download.oracle.com/otndocs/products/jdev/10131/ADF_tutorial_setup.zip is not accessible plz show the reel link to.

  • Import von WTV-Dateien in Premiere 12 MAC

    Guten Tag, ich möchte meine unter Windows aufgenommenen TV-Aufnahmen (Format: WTV) am MAC mit Premiere Elements 12 bearbeiten. Leider kann ich sie nicht importieren. Was kann ich tun? Danke für eine Lösung! Gruß mibo2805