Custom Javascript functions?

If I wanted to write a small library of javascript functions that I can reuse for each project, where I place my duties?

I remember somewhere that I can edit a specific javascript file in Captivate files copy in the published version and have my functions always available. Only, I don't remember where this file is kept.

HTML5

You must place an include statement in the file index.html here:

C:\Program Files\Adobe\Adobe Captivate 8 x64\HTML

Put your JavaScript here file:

C:\Program Files\Adobe\Adobe Captivate 8 x64\HTML\assets\js\

SWF

Put your scripts in this file:

C:\Program Files\Adobe\Adobe Captivate 8 x64\Templates\Publish\standard.js

Tags: Adobe Captivate

Similar Questions

  • Can run us javascript function locally within the amx page?

    Hello

    I am totally new to the features of the MAF, let me just 1 thing right, im familiar with the implementation of javascript as on PHP. For example, (1) you can create a js file in a certain directory of your project as long as you can connect properly. And, on the php page, you link such as)<script type="text/javascript" src="file.js"></script>)to be of use inside of your php page or (2)locally run the javascript function inside your php page such as

    function myFunction(){
      
    Alert("Hello World.");
    }.


    So far what I've done on the tutorial javascript MAF, same case, you need to specify your javascript function inside a .js file and save your js file in your maf function (so that the javascript functions are available and can be called through the java method of AdfmfContainerUtilities.invokeContainerJavaScriptFunction () inside your file of java bean managed). After that, in my case to test the tutorial, I need to create a managed bean method to call the associated javascript function based on my actionlistener to the button that ive created inside my amx page, it didn't work (NOTHING HAPPENED when the button is clicked, as maybe it's because I was wrong by calling the managed bean method or class({viewScope.popupHelperBean.onPopupShowHideAction}). )


    Please follow this tutorial to understand what im referring to topic-> https://blogs.oracle.com/mobile/entry/how_to_open_and_close

    (If someone has already managed to made this javascript tutorial, please inform me so that I can see on my error).


    Now I'm trying a different approach which is to run the javascript locally, it's just that I don't have enough resources that could satisfy my investigation to start with. I met this amx: verbatim terms during my research. Fact amx: verbatim help by running the JavaScript locally.


    Thanks in advance.




    Hello Amey,

    Thanks, I had run successfully the popup alert box based on javascript this tutorial you had linked to me, it seems that I am on the right track on how to run javascript on the page of the amx. Its just that the tutorial I mentioned on my post doesn't seem to work as it should, I'll try to resolve the issues for a while. I just want to share with the community who are new to the MAF and are currently working on the custom javascript on page amx application:

    1. include your js inside your working directory file

    2. Add the javascript code that is personalized to your AMX

    3. create a managedbean and a method that could call the javascript function

    Carefully follow this tutorial as mentioned by Amey have the idea of how the javascript is running on amxpage--> https://blogs.oracle.com/mobile/entry/invoking_custom_javascript_from_an

    By the way, thank you very much Amey.

    Learner90

  • JavaScript function to page template?

    Hey experts,.

    I have a custom component that substitutes a template page, and this page has a javascript function. Is it possible to remove the function out of the page and simply reference? How could I add a javascript as a resource of the component function?

    Thank you.

    There is an example of using external JavaScript here: https://bitbucket.org/mythics/metadatamultiselectwidget/src/

    Here are some additional resources:

    http://fscherpe.blogspot.com/2012/07/pushing-files-to-Weblayout-from-UCM.html

    http://Techblog.aurionpro.com/2012/12/WebCenter-content-interface-branding_24.html

    Jonathan

    http://jonathanhult.com

  • Can I call a custom outdoor function?

    Can I call a custom outdoor function?

    For example

    //______________________

    var myComp = app.project.activeItem;

    createComps();

    createSolids();

    RenderItems();

    //______________________________

    but these functions are written separately in the current directory .jsx format?

    As a library?

    #include <>?

    You gave the answer to your question: you can use #include 'path/to/file/to/include.jsx '.

    And the path can be absolute or relative to the current folder.

    See the JavaScript ToolGuide for this (it does not appear in the AE script guide since it is common to all applications).

    You can also use $.evalFile (pathToFile), which has more or less the same effect I think.

    Xavier.

  • How to create the javaScript function that erases the text of the field values

    Hello
    How can I create a javaScript function to clear the values of the text fields
    and I want to call this function on the clear button on my custom area

    Yes it is possible but not recommended approach.

    Here is the link that you can use if you want to implement using javascript
    http://www.itechies.NET/tutorials/JScript/jsexample.php-PID-set_field.htm

    Thank you
    AJ

  • Where can I add my custom javascript?


    I am trying to add some javascript to be called when the view of a topic. We have an excerpt at the foot of each topic page that calls the javascript code and also has the text of the copyright law. This call to the javascript function that inserts the snippet seems to appear at the end of the html of each topic very well.


    Now, I wanted to include the javascript function that is called by the extract of footer once not only within each topic, so I put it in the whutils.js. But unfortunately, the whutils.js file seems overwritten at any time that the html help project is compiled.


    Is it recommended to find out where to register custom javascript source that won't get beat over RoboHelp compiling?


    Thanks for any help.

    C

    Welcome to our community

    In general, I will create a. Text file JS that contains my functions and adds that, for luggage.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7, 8 or 9 in the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • Get the ID of the table to zoom before (javascript functions)

    I want to implement custom drill downs. When you click on a column to dig, it uses the following javascript function: Basanta (saw_5_6, 0, 0) where in this case, "saw_5_6" is my current table. Because it is defined dynamically and can change the name of the table, is there a property that I can get the name of the table from?

    I see where the object is created. (I might add dynamically)
    Window.saw_5_6 = new Object();
    saw_5_6.sJSObjName = "saw_5_6";

    I was wondering if there is a way / property that gives me this information so you can call RTDr() and provide the name of the correct table.

    Thank you.

    Published by: Derek on November 9, 2010 14:28

    If there is only one table in the page then you can use my function as it is. I wrote it to implement custom writeback. Of course you can modify it to get all the objects in the table.

    function getSawTableObject(){
         var ptrSawTableObjectName = /saw_.\d/;
         var obj = null;
         for (var propertyName in window){
              if ((ptrSawTableObjectName).exec(propertyName) && String(propertyName).charAt(0) == 's'){
                   obj = window[propertyName];
                   break;
              }
         }
         return obj
    }
    
  • Error when you try to call the Javascript function in the ActiveX Web browser

    I have a requirement to call a Javascript function in a web page that is displayed in the browser's ActiveX control.  I have the control on the front panel, and I use the Navigate method to call to the top of the appropriate page.  Based on an example, I found, I'm trying to get a reference to the HTML Document so that I can then get a reference to the Fenetreparent.  There is a method of the HTML Window object called execScript who I'm calling.  See the attached image of the code (reference close calls do not appear, but when I run it, they are there).

    I can't the node property that returns the parentWindow reference.  The error I get is the following.

    Error-2147467262 LabVIEW: (Hex 0 x 80004002) No. taken such interface supported.

    Any ideas on where to go from here?

    Hello

    I have reproduced the issue and the error you are seen and tried to understand what is the solution.

    It seems that the problem is with getting the pointer to the parentWindow.  From what I read on MSDN, it's maybe a limitation in the use of an ActiveX control in LabVIEW. It seems like Internet Explorer creates the object of the window, and so opening in one ActiveX control you free access to this top-level object.

    Here could be workaround for javascript execution in your program:

    I would like to know if it works for you and if it will work in your program.

  • Flash cannot call the javascript function in the local html file

    Hello!

    Us is to develop our first application on Playbook. It is an html file including a flash file and javascript code. Everything is packed in. in the file bar, a config.xml file and has been correctly loaded into the Playbook. Everything works locally (no web access)

    Everything works well except when we use an ExternalInterface.call("saveglobalscore",score) in flash that calls a javascript function in the .html file.

    In the actionscript3, we selected the "authorized local file access" and put the 'Security.allowDomain("*) '.

    Any ideas? Thank you!

    External interface tries to access the files packaged locally is currently a known issue.  I have not really of a calendar when or if this can be resolved.  It may be in the code base of flash.

  • Calling JavaScript function from c ++

    Hello

    I need to call a function javascript from c++ code. I have a webview in which an html page is opened.

    I can connect to c ++ js using navigator.cascades.postMessage. I have to call vice versa.

    c ++ for js now.

    Concerning

    Hello

    I tried another way of calling JavaScript function continue in every 5 seconds.

    Steps to follow:

    1 import im .js QML file.

    2. create a function in QML and call the java script of QMLfunctuion function.

    3 the signal of the CPP in every 5 seconds and connect this signal to function in QML whare you call java script function.

    4. it indirectly calls the java script function.

    Thank you

    Anand

  • JavaScript function does not work on the JSFF page load but runs on page refresh

    A bit of background first:-I'm a front-end developer who use jDeveloper to build templates/pages. I also manage client scripting using af:clientListerner tags. But my knowledge on the related backend stuff (beans, triggers, actions) etc. is almost zero. So, I'll use technical very simple terms to describe my problem.


    Scenario:


    Let's say I have two pages JSFF, first.jsff , and second.jsff


    In first.jsff, I have a command link that navigates to second.jsff. Inside of this page, I have a javascript function that I need to run when the user interface is rendered. But as soon as second.jsff load, my JS function never fires. Only when I refresh the page see running. This what second.jsff looks like:

    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:af="http://xmlns.oracle.com/adf/faces/rich" xmlns:f="http://java.sun.com/jsf/core">          
       <af:panelGroupLayout id="pgl17" styleClass="mainBox AFStretchWidth">
           <af:resource type="javascript">
                function runOnLoad(){
                      alert("Hello world");
               }
               runOnLoad();
            </af:resource>
            /*   other ADF components go below this line
            .
            .
            .
            */
       </af:panelGroupLayout>
    </jsp:root>
    
    
    

    So I see the alert only when I refresh the page (i.e. after the redirection occurs, I have to refresh the page to make the JS run)

    What I'm missing here?

    jDeveloper version is 11.1.1.9.0

    You will use this fragment of .jsff inside the .jspx page. In the .jspx inside the af: document add clientListener as:

        
          
          .
          .
          .
        
    

    Change the javascript method to be:

     
          function runOnLoad(event)
          {
            alert("Hello world");
           }
     
    
  • Best approach to call a javascript function in a tabular presentation

    Hi all

    I have a manual tabular presentation. In this form, I have a javascript function that disables hiredate column. The function is called on the deptno column change.

    So, if I select the "Research" Department and hire date field is disabled for the selected line.

    I need to run this function also executed automatically on page load. So, it checks if all rows with deptno as search and disable hiredate field for these lines.

    Please let know us the best approach to achieve this goal, which does not affect the performance that the page has 2000 lines.

    function test2 (pThis) {}

    var v_item_value = pThis.value;

    var v_hiredate_item = $(pThis).closest('tr').find ('td [headers = HIREDATE] input [name = f05]');

    var v_hiredate_button = $(pThis).closest('tr').find ('td [headers = HIREDATE] button "");

    var currIndex = $('select[name="'+pThis.name+'"]').index (pThis);

    var currRow = currIndex + 1;

    If (v_item_value == '20') {}

    v_hiredate_item.prop ('readOnly', true);

    v_hiredate_button.prop ("disabled", true);

    document.getElementById("f08_"+[currRow]).disabled = true;

    }

    else {}

    v_hiredate_item.prop ('readOnly', false);

    v_hiredate_button.prop ("disabled", false);

    document.getElementById("f08_"+[currRow]).disabled = false;

    }

    }

    Thank you

    Zkay

    Try this:

    Suppose that the deptno column name is "f08".

    execute a javascript script that triggers the loading of the page

    $("[name=f08]').change ();

  • Is there a way to trigger an action advanced through custom JavaScript?

    I wish I had my 'normal' custom JavaScript trigger actions Captivate.

    This could be useful in a lot of ways, but what I would do right now must play an audio clip when certain conditions are met (a conditional, peak action is too clunky for my needs).

    Any way to do it? Thank you!

    You can trigger a fast action with JavaScript:

    cp.runJavascript (cp.model.data.objectName.oca);

    The script is advanced actions that are attached to objects, if it's a slide enter, you will need to find the id of the current slide.

  • Needs of JavaScript function to fire based on the value set by a checkbox

    Hi all, I'm doing my best to learn javascript on http://www.w3schools.com and hoped not to have to ask this kind of questions, but until what I fully educated I am a bit stuck.

    I run a function on a page of the apex that checks the value of a LOV column in a table, and then did some stuff. This code works fine if it is assumed that the column I'm evaluating is displayed as ' select list - static LOV. If I change the column to display a check box, and then copy the following code no longer works. How should I change this to be able to read the value when the value by a checkbox instead of a LOV?
    var currIndex = $('select[name="'+pThis.name+'"]').index(pThis);
     // check current items value (return value of lov)
     if (pThis.value=='Y') 
    Also, my function works when a user sets the value after the page is displayed, but I also need it to do such things even on page load. Can I just copy the function in the body of the html page? Perhaps, if someone can just point me in the right direction, I can continue to research. I know there have been discussions on this, but I'm still not entirely clear on how to achieve this.

    Thanks in advance everyone to continue to teach me the apex.

    John

    Hello

    You had error on the JavaScript function test

    if (pThis.value=='Y' {
    

    There is lack of support.

    Plugin UILayout gives also some JavaScript errors, so I State never to that.

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Call a Javascript function in a Captivate 7 Web page

    Hello

    I try to call a javascript function in a web page to Captivate 7. The call is an output of blade event. When I saw the (F4) project, I have a prompt that displays a javascript function is called and told me to display in a web page. Of course, which is perfectly logical. However, when I go to the same project in the hml with the necessary Javascript function in page, I get nothing. The script is a simple that displays an alert.

    I made sure the SWF in question is defined in the global security settings. I know that the javascript function is correctly formatted.

    Can someone please give me an example of how to "execute Javascript" call of Captivate to a function residing in the html page please.

    Any help is appreciated.

    Don't just add the SWF file to the Flash security locations overall of confidence.  Add the entire folder containing all the files published, or better still, a level that contains all your published Captivate projects so that you never have to worry about Flash security issues again.

    Also, if it still does not work, I would try the same running JavaScript with a different event than the event output slide.  It can be a little bit reliable.

Maybe you are looking for

  • How do I resize pictures so I can post them on the forums?

    I have severl photos I want to post to a forum. The forum has size limitations. How can I resize them so that they will meet the requirements? Thank you

  • Signal strength and range of the latest wifi routers

    I have a big house, with my router (BT home hub) in a wiring closet in a laundry room. The House is wired for ethernet and my current Wi - Fi, a Netgear WPN802, is placed at the best discreet place in the House. It is quite visible from everywhere in

  • ID GG9XG4-6666RR-QFPK1G-61QG03 failure

    I have a Pavilion dv6 notebook (product A3G60AV ID) and received ID GG9XG4-6666RR-QFPK1G-61QG03 failure when executing a diagnostic system.  The description mentions "Hard Drive 1.  This problem can be corrected by replacing the hard drive? Thank you

  • SQL - last selection query save values for each date in term

    Hello Can anyone help me please with my problem. I'm trying to get the last balance recorded for each day of specific box (1 or 2) in a given period of days of the database ms access using ADOTool. I'm trying to get this information with SQL query bu

  • Error code #2000-0142 after the laptop is a Dell fall.

    Original title: I have a Dell Inspiron 1545 with Windows 7 x 64 which does not load windows. No new software or configurations have been added since this problem started about 2 weeks ago.  However, the laptop fell.  I was able to run the system diag