Good way to call the JavaScript function

I am launching a popup to size using the Captivate 1 javascript capabililties.

My function is defined as follows:

function popup1() {}
var functions = 'directories = no, menubar = no, status = no, titlebar = no, toolbar = no, width = 742, height is 563';
var mypopup = window.load event ("Fund sovereigns/dmatmp.html ', 'mypopup' features ').
}

Essentially, when the user clicks on the box, this function will strip the chrome, resize the popup window and load the page dmatmp.html. Pretty simple.

In the javascript box, under run Javascript, I have the following question:

onclick = "popup1 ()" "

However, when I click on the link in Captivate, Internet Explorer opens a window then closes immediately. Firefox opens a tab and fill it with nothing.

What is the problem?

Matt

jbradley88, your suggestion has ALMOST been the solution... I made your corrections and still had the problem.

The code that I put in the "execute Javascript part ' of the clickbox was:

JavaScript:popup1()

No one who has documented anywhere, of course... nowhere I could find anyway.

Anyway, problem solved.

Tags: Adobe Captivate

Similar Questions

  • How to call the javascript function in ADF

    I have the javascript function stored in a .js file external (try to reuse in another application). How can call the javascript function for an event of ADF faces component. I need to I am a newbie to ADF, all ideas are appreciated.

    Kind regards
    Surya

    Published by: sgodavar on Sep 24, 2010 11:44

    Include JavaScript to the jsff/jspx as page:

    Call it like:

    Type = "dblClick" / >
    Amit

  • 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.

  • Call the javascript function by hovering the mouse over the tab

    Hi all
    I have an application with a level tabs. I want to call a javascript function to the mouseover of the standard tab please help as soon as possible.

    Thanks in advance

    Hello

    Go to the page template and scroll the tab Standard attributes. In my current theme which has a line that looks like this...

    #TAB_LABEL##TAB_INLINE_EDIT#
    

    You could change this

    #TAB_LABEL##TAB_INLINE_EDIT#
    

    Or make reference to a function that you included in the header.

    Alternatively, you can make the same change to no current tab.

    Is that what you mean?

    See you soon

    Ben

    Published by: Munky on January 14, 2010 11:34

  • Call the javascript function using parameters cause run an immediate dependant

    Hello.

    I saw a strange behavior, if I try to use javascript parameters in the method af:clientListener property.

    Using the syntax
     <af:commandButton text="Init" id="cb1"
       partialSubmit="true">
       <af:clientListener method="OnInitControl1" type="click"/>
    </af:commandButton>
    and javascript
    function OnInitControl1() {
      alert('OnInitControl1 called');
    }
    the method oninitcontrol1 is called first with the click of the button.

    But with the syntax
    <af:commandButton text="Init" id="cb1"
       partialSubmit="true">
       <af:clientListener method="InitCtrl('Control1')" type="click"/>
    </af:commandButton>
    and javascript
    function InitCtrl(frameName) {
      alert('InitCtrl(' + frameName + ') called');
    }
    the InitCtrl function is called immediately to the loading of the page.

    In both cases, the javascript file is inserted into the use of af: document
    <af:resource type="javascript" source="/ScriptHelper.js"/>
    Is my "method" of the af property syntax: clientListener the problem?

    Paul.

    Paul,

    I don't know if you can call javascript with parameters in the way that you are currently using. However, have you tried using an af:clientAttribute and enhance the javascript?

    Check the operating instructions by Frank on the related topic.

    http://www.Oracle.com/technology/products/jdev/tips/fnimphius/passingAdditionalArgumentsToClientListener.html

    Arun-

  • Need to call the javascript function when the page is loaded

    Hello - I have a javascript function defined on Page 0 of my application. It is in the source of an unconditional
    region whose view point is after the header.

    I call successfully the function of event onchange on individual page elements. (The function
    sets the value of an element based on the value of another).

    But I also need to call the function when the page is loaded. The page is a form of data modification,
    so many values is filled when it is loaded, and I need the dependent values populated
    also.

    I tried to add the call to function in the following way. It is not at all get called (alerts are not forthcoming)
    and there is no error in the Firefox error console...
    - as an event onload in individual items
    -call directly to the edit HTML page header
    -call directly from the HTML body of the edit page (which, from what I've read, sounds
    as to execute onload and my page template doesn't have a defined substitution onload string).

    In these 2 cases, I simply call it like: jsLookupValue ($v ("P8_OBJECTTYPE_ID"), "objecttype_id", "P8_OBJECTTYPE_NAME", "objecttype_name", "hdb_objecttype");

    How can I do this?

    Thank you
    Carol

    If you define the function on the zero page and any page you should be able to call using something like:

    
    

    Have you tried to put just a statement alert() on the page in order to check that it runs just about anything?

  • Use about Central button mouse to call the JavaScript function question

    I want to use the mouse middle button to call the function JavaScript (< a href = "javascript:help ()" >) help() opens a new window and directly to the Help Page of my GUI, but when I click on it with the middle button, it will open new tab blank Page that url = "javascript:help()"; " can't help executive function... What is a Firefox Bug or a correct behavior in Firefox? I thank.

    You must use left click to manage JavaScript links.

    See also http://kb.mozillazine.org/browser.link.open_newwindow.restriction

  • JavaScript exception: error calling the selection function: TypeError: $(...). museMenu is not a function

    Since the update, one of my sites is weird. When you open the Web, that's what he said, "JavaScript exception: error calling the selection function: TypeError: $(...).» museMenu is not a function ". The site is www.hibiscuscuisine.com. If someone could help me understand this point, I would really appreciate it. Thank you

    Hello

    Please follow the complete instructions mentioned in this post - MuseJSAssert: error calling the function switch: TypeError: .museMenu $(elem) is not a function by Zak.

    Let me know if it works

    Thank you

    Ankush

  • How to call the java function with javascript setting in mobile adf?

    How to call the java function with javascript setting in mobile adf?

    The ADF Mobile utility container API can be used from JavaScript or Java.

    Application container API - 11 g Release 2 (11.1.2.4.0)

  • Call a javascript function in the Value attribute of param

    Hello

    I want to put a TLF text field in the SWF file in an HTML page. So I used flashvar, by calling a javascript function to it attribute "value" as follows.

    < param name = FlashVars value = "" + SetFlashMovieParam() + "" id = "message" / > "

    SetFlashMovieParam() is a javascript like the following function.

    function SetFlashMovieParam() {}

    document.getElementById("message").setAttribute ("value", "msgText = Start");

    }

    Even if this does not work, when I put the text value directly to the 'value' attribute, it worked.

    < param name = FlashVars value = "msgText = here % 20is % 20The % 20text" id = "message" / > "

    I think it's because calling a javascript function syntax error in the param tag. Can anyone help to call this function properly...

    Thank you.

    Normally when you have an executable code embedded in the html code you should check that article accordingly.  In the case of javascript surround you with

  • Select with the javascript function

    I need to create a purchase order that allows to calculate the cost of printing using one-sided or two-sided. My problem is that this code can use only the cost of single_side in the function. The function must use two side cost if "DUP" checkbox is disabled. What I read javascript does not provide a way to access the selection list as if it were a table. (Where I can identify what dimension of the table I would use). Is there another way to do this?

    < script type = "text/javascript" >
    total() function
    {
    var Field1 = document.getElementById("DUP").value;
    var Field2 = document.getElementById("COPIES").value;
    var field3 = document.getElementById("ORIG").value;
    Field4 var = document.form2.paperlist.value;
    sphere5 var = document.form2.paperlist.value;
    If (Field1! = "no")
    document.getElementById("mytotal").value = parseInt (field2) *.
    parseInt (field3) / 2 * parseFloat (field4);

    on the other
    document.getElementById("mytotal").value = parseInt (field2) *.
    parseInt (field3) * parseFloat (field5);

    }
    < /script >

    Select name = "paperlist" id = "paperlist" onchange = "total ()" > "
    < cfoutput query = "paperlist" >
    < option value = "#paperlist.single_side # #paperlist.two_side #" > #paperlist.descr #, #paperlist.single_side #, #paperlist.two_side # < / option >
    < / cfoutput >
    < / select >

    < input type = "checkbox" name = "DUP" id = "DUP" onchange = "total ()" accesskey = "3" tabindex = "3" > "
    < input type = "text" name = "COPIES" id = "COPIES" onchange = "total ()" accesskey = "1" tabindex = "1" default size "0" = "10" = > "
    < input type = "text" name = "ORIG" id = "ORIG" onchange = "total ()" size = "10" accesskey = "2" tabindex = "2" default = "0" / > "
    < input type = "text" name = "mytotal" id = "mytotal" readonly = "true" size = "10" / >
    < input type = "submit" name = "submit" value = "Submit" / >

    I guess you want to get the "selected" option from the selection list?

    You call the js function in the onchange event of the select list just pass it as a parameter

    Select name = "paperlist" id = "paperlist" onchange = "total (this.selectedIndex.value)" > "

    total function (slectedValue)

    or

    document. FORMNAME. SELECTLISTNAME.options [document. FORMNAME. Alue SELECTLISTNAME.selectedIndex] .v

    This will give you the value selected from the list of selection, simply replace "FORMNAME" with the name of your form and your 'SELECTLIST' with the name of your selection list

    Ken

    Edit:
    Should have to read it again, yes you can do it.

    It is not clear which character you have between 2 values in the value attribute of the selection list, but I would suggest a comma, no spaces

    Then

    field5Array = field5.split(',');

    This will then give you the picture that you want with
    field5Array [0] equal to single sided
    and
    field5Array [1] equal to double-sided

  • What is a good way to use the queues for the model of consumers/producers?

    Hi all

    I am following the model of consumers/producers to use the queue to synchronize the following process: the producer is a loop to produce a number N, I will put each number generated in a table and after each 5 numbers generated, I put the table in the queue and pass it on to the consumer. I have to wait the use by consumers of the data and it will then remove the item from queue so that producers will have the chance to produce another 5 numbers. As I put the maximum size of the queue one, I expect that the producer and the consumer turns to produce / consume all five numbers and the opportunity to another. Here is my code

    When the checkbox is false, the code will be

    For the first 5 numbers, product will generate every thing right and put it in the table, and it's going to pass the array to the quere so that the consumer will have the chance to loop through the table. I except the procude loop will continue only when the queue is available (i.e. all items are deleted), but it seems that once the consumer starts the loop loop of the product will continue (if the indicator x + 1 and x 2 will be changed to numbers). But this isn't what I want, I know there must be something wrong, but I can't say it is.

    dragondriver wrote:

    As you say in 1, sequency structure to enforce the order of execution, that's why I put it here, in this example, the simple question, I replace the complete code with increase in the number, in the real case, the first markers + 1 and + 2 must be performed in this order.

    Mikeporter says:
    1. get rid of all the structures of the sequence. None of them are nothing but apply a work order which would have been the same without them.

    So even if you delete the sequence structure, there will be a fixed & defined order and it is because LabVIEW follows the MODEL of FLOW OF DATA.

    Data flow model (more precisely in the context of LabVIEW): a block diagram node runs when it receives the required inputs. When a node is running, it produces output data and transmits data to the next node in the path of the data stream. The flow of data on the nodes determines the order of execution of the VIs and functions on the block diagram (click here for reference).

    Now in your code, just remove the sequence structure will not make you order will be going to stay the same, but you need to do some very minor changes (as thread of the error in loop, before that he go to the node "Élément Dequeue").

    Come to the main point: it's a good way to use the queue for the consumer/pmodel that?
    The model you are using (and qualifying as consumer/pmodel) is much too deviated from the original consumer/pmodel which model.

    dragondriver wrote:

    For the second, Yes, it's my fault for delete, though. I'm actually the example of model of producer/consumer design pattern, but I do not pay attention to the while loop in the part of the consumer.

    While loops (two producers & consumers) are the essential part of this architecture and cannot be deleted. You can start your code using standard model.

  • 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.

  • Calling the external functions (DLL)

    Hello world!
    I know maybe it's an issue, but I have found no solution (whycih I could understand) to my problem:
    Is it possible to call functions of a (in written C++) DLL, or any other way to access the C++ functions?

    It would really help me, because I want to use Flash to create desktop applications and use C++ for system integration.
    Any sujestions are welcome!

    The third-party tools "wrap" or "Home" activex control and provide a api extended - consider a well improved version of the standard flash projector, which is quite limited. I know not what is possible, I can't speak from experience - but I know that others here on the forums have used them.

    There is a type of open source implementation called haxe and screenweaver... or something like that... but I don't know if it will do what you want.

    I know that zinc will be because I did a quick search and it says - so I guess it must! Other names that come to mind are Jugglor and Swf Studio. I haven't checked to see if they can use external libraries.

Maybe you are looking for

  • How can I get my search on the search bar engine choices?

    I've lost the ability to choose a search engine by clicking on the magnifying glass next to the search bar. When I click it now all he says is "change search settings." When I go to this option it gives me a list of search engines to view and all are

  • Satellite L70-B-150 - how do I disable the integrated graphics card

    Hi everyone (sorry for my English) I bought Satellite L70-B-150, it has two graphics cards: integrated intel hd 4600 + amd radeon r9 m265x,. How to disable BIOS (or uefi or otherwise), the graphics card intel?Of course, I know I can disable win8 equi

  • Paste values only Excel

    Hello I'm trying to paste some values from an excellent worksheet to another. I have no problem to paste the cells in the State, the problem is, the cells that I copy contain formulas in them to calcute some information for me. I would like to paste

  • digital reading correlated to the buffer

    Hello. Is it possible to generate a finished (25 pulses, 100 kHz) pulse train and read an entry to a variable to each falling edge for a 25-bit PCI-6254 or USB-6221 result? If so please tell me some examples.

  • Feature helps performance call (COLLECTION ITERATOR PICKLER FETCH)

    11.2.0.3Solaris 10I need assistance with our implementation of the policy of restricting access. From our plans of execution and trace files, we see our political function run when querying tables restricted. This, of course, is planned and is done i