Execute Javascript on EXE

Hello,
I've  published a SCORM compliant project from Captivate 4 as Flash(swf) now using the same project I am trying to publish it as a stand alone(exe) project but having problems with Captivate's "Execute Javascript". I am trying to call a function which is basically located within the output HTML file but since my intended output is a exe file, I am bound not to use the said action from Captivate prompted error was: "Internet Explorer cannod download. Unspecified error".Is there any way to avoid this?
Is there any similar procedure I can work with for projects intended to be publish as stand alone?Or am I just missing something.
Thanks
-Miguel

Hi Miguel,
At a very basic level, AIR is a local web browser... meaning it can render and display LOCAL .htm pages and execute JavaScript... just like IE, FF, or Chrome will do for content fed from a server.  This means that you publish your Cp project as a web project, then tell AIR where the local .htm file exists on your hard drive.  AIR will then display your Captivate .htm file as if it was in a browser... allowing your JavaScript functions to execute.  I have developed a Captivate AIR player for other clients of mine and there are a few things to keep in mind.
1.  Adobe AIR requires the AIR runtime to be installed on the end users machine
2.  If you have any .f4v or .flv video files targeted for "progressive download" in your project, you'll have to adjust your Flash Security settings in order to get these to play properly.  If you don't have any of these video files... you're good to go!
3.  If you don't have Adobe FlashBuilder, you can use the free FlashDevelop program to build your AIR project.  It takes a bit to set up your development environment, but it's free.
If you're interested in the Captivate AIR player, please PM me.
Jim Leichliter

Similar Messages

  • Using "Execute Javascript" to mark a course as Complete. 

    I am using a 3rd party Flash-based player (Flashform) to
    bundle Captivate and Flash made SWF files into a SCORM 1.2 package.
    My final SWF is a Captivate assessment, which, if passed, should
    change the course lesson status to “completed”. Can I
    accomplish this by using “Execute Javascript” on a
    button and run something like:
    “FSCommand("LMSSetValue","cmi.core.lesson_status,completed");”
    Any advice is greatly appreciated.
    Jon

    If you were using only the Captivate-published files for
    SCORM, it would likely be fairly straightforward to do what you're
    looking for.
    Unfortunately, since you're using a 3rd-party player, you'll
    have to consult the documentation for the player to determine which
    capabilities it exposes and how you can access those capabilities.

  • Using Adobe Acrobat - Is it possible to execute JavaScript to report to LMS to track pdf was viewed?

    Question:  Using Adobe Acrobat - Is it possible to execute JavaScript to report to LMS to track pdf was viewed?
    What I would like to do is to create a pdf with an Acknowledgement button that when click will report (via JavaScript) to the LMS (Learning Management System) that the end user viewed/acknowledged the pdf.
    Can this be down with JavaScript in this fashion?

    Thanks, (My fault, as I should have specified this.) Due to legacy reasons I need to use ie, and so I can't use the PrintPdf firefox plugin. So from reading the rest of that thread, the best method does seem to be to get hold of a copy of acrobat, and add a Print() script in each file, and open it in a new tab.
    At least it gives me somethigin to try anyway :-)

  • Execute javascript after update and submit in Skillbuilders Modal Page

    Hi,
    I'm editing, say, list of my employees in a tabular form opened in Skillbuilders Modal Page.
    I have to execute same javascript code after the changes in the tabular form have been submitted.
    I've tried using a Dynamic Action fired on Page Load, but that gets executed before the update is completed.
    Does anyone have an idea how to accomplish this?
    Thank you!

    Thank you for your answers.
    Yes, I'm trying to execute javascript code on the child page, the modal one.
    Basically, there's a button on my parent page which opens the modal page. The modal page has buttons Cancel, Delete and Save. Clicking Save button submits the changes and if there are errors, errors are shown and we stay on the modal page.
    My modal pages are all of fixed dimensions and if there are errors, I have to adjust the other regions (adjust their height, add a scrollbar, etc) in order to show everything in the modal page.
    I have written a function that does exactly that, but I have to execute the function after the page is loaded and the regions are shown. But, if I execute it using onload attribute, or setting a dynamic action which fires on page load, the function gets executed during the submit, before the regions are shown.
    I hope I have managed to clear up the problem.
    As always, thank you.

  • Execute javascript from plsql in a dynamic action.

    Is it possible to execute javascript with htp.p from a plsql block in a dynamic action (on change).
    I have tried it but I get a JSON error.
    The reason I want to to this is:
    I have to check something with plsql and depending on the result I want to do something in javascript.
    I now going to try it with ajax from javascript, but if somebody has a other way to do this i like to hear it.
    Thanks,
    Fred.

    Very neat, many thanks.
    I now have a 'Set Value' 'Javascript Expression' action of 'this.triggeringElement.id;' to set a hidden *but unprotected* page item. This is followed by the 'Execute PL/SQL' action which simply calls a package procedure and passes the name of the triggering item. The procedure then sets the session state(s) as required.
    Thank you!

  • Unable to execute javascript from backing bean

    Hello experts,  I want to execute  javascript function from backing bean method.   
    In my .jsff  page,  I have added  the javascript as :
    <jsp:root  ..... >
    <af:resource type="javascript" >
              function fileDownloadJS() {
                                alert(" tesing js from backing bean");
        </af:resource>
    </jsp:root>
    in my backing bean method  :
    public void callJSfuntion(ActionEvent actionEvent) {
            RenderKit rk = FacesContext.getCurrentInstance().getRenderKit();
            ExtendedRenderKitService erks = (ExtendedRenderKitService) Service.getService(rk, ExtendedRenderKitService.class);
            erks.addScript(context, "fileDownloadJS();");
    I have table in my .jsff page,   inside table column,  I have command link  and when I click the link,   I am invoking bean method  :
    <af:table  ....>
        <af:column sortProperty="title" sortable="true"  
                           headerText="File name" width="250px" id="Title"
                           clientComponent="true">
                  <af:commandLink   id="cl1"    actionListener="#{MyBean.callJSfuntion}" clientComponent="true">  
                    <af:outputText value="#{row.title}" id="ot1"/> 
                  </af:commandLink>
         </af:column>
    .</table>
    But when  I  run my taskflow and  click on  the link inside the table column,    JS function is not invoked.
    Absolutely  no clue what  is the issue.
    Appreciate if you can  help me out to resolve this issue.   Thank you.

    For debugging purpose can you try :
    <script type="javascript" >
              function fileDownloadJS() {
                                alert(" tesing js from backing bean");
    </script>
    put it on top of the page and let me know what happens.
    If it doesn't work try writing the function itself in your addScript(context, script); to see if it works.

  • Issues with Executing Javascript command in Captivate

    Hi,
    I am having issues with executing javascript for a button in adobe captivate 5.  Let me explain what I am trying to do.  I am working on a WBT that has three skill checks throught the course. These skill checks are not graded or tracked for completion.  I currently have an image button that has the command "Open another project" The first image button is pointed to SkillCheck1 and I have the html file and swf file in the published root folder.  This currently works fine.
    However I want to use javascript to open a new window 800X600 with not toolbars at the top.  I got this part working with the code below:
    window.open('http://www.adobe.com','mywin',
    'left=40,top=40,width=800,height=600,toolbar=1,resizable=0');
    My only problem is, once the popup opens, my WBT goes to a page that says [object] and thats it.  I am uploading two images to show what I have.  Can someone help resolve my issue of the WBT going to

    Ok so I took this link and viewed over it.  I am new to Javascript and know very little about it.  Therefore this script kind of makes no sense to me.
    <script language="JavaScript"><!--
    var windowHandle = '';
    function myOpen(url,name,attributes) {
        windowHandle = window.open(url,name,attributes);
    //--></script>
    <a href="javascript:myOpen('page.htm','windowName','height=100,width=100')">text link</a>
    I chose the option to exectute javascript.  Does captivate need all of this including <script language=JavaScript">  Here is how I edited the script.  Should I make any changes to what is in bold?
    var windowHandle = ''; 
    function myOpen(url,name,attributes) {
        windowHandle = window.open(url,name,attributes);
    <a href="javascript:myOpen('http://www.adobe.com','Adobe Website','height=600,width=800')">text link</a>

  • Execute Javascript after *.jspx page rendered

    I have a page with controls and a subform with a servlet, rendering a jasper report:
                   <af:panelFormLayout id="pfl1" partialTriggers="cbReportHTML">
                    <af:subform id="sfRep">
                      <jsp:include page="/jasperservlet" flush="true"/>
                    </af:subform>
                  </af:panelFormLayout>
    I want the page to be rendered before the subform (so that user can see controls on page before the report).
    "/jasperservlet" generates the report in about half a minute.
    I want to have a JavaScript that runs after the page is rendered (and the user sees the controls) and then it starts to generate report.
    I tried to put a frame with such javascript, but the javascript is executed before user can see controls.
    How can it be done?

    Thank you for your answers.
    Yes, I'm trying to execute javascript code on the child page, the modal one.
    Basically, there's a button on my parent page which opens the modal page. The modal page has buttons Cancel, Delete and Save. Clicking Save button submits the changes and if there are errors, errors are shown and we stay on the modal page.
    My modal pages are all of fixed dimensions and if there are errors, I have to adjust the other regions (adjust their height, add a scrollbar, etc) in order to show everything in the modal page.
    I have written a function that does exactly that, but I have to execute the function after the page is loaded and the regions are shown. But, if I execute it using onload attribute, or setting a dynamic action which fires on page load, the function gets executed during the submit, before the regions are shown.
    I hope I have managed to clear up the problem.
    As always, thank you.

  • Captivate 3 Published file won't execute JavaScript

    Pulbished Captivate 3 course.   Final screen has an exit button with the following script:  ab_SetScoreStatus(100,'completed');ab_CloseWindow();       When I post the course to our LMS it uploads fine, but when I try and run the course I get an error when I click on the Exit button and it doesn't do anything.   I had someone try the same thing on their computer and it works fine for them so I'm thinking it's something with my settings.   This used to work for me but then I got a new computer so not sure if the settings (IE, Flash or ????) are different or what.   I'm running Flash 10, and IE 8.   Any help would be greatly appreciated.  Thank you.

    Good morning Rick, and thank you for trying to help.
    Sheri Delaney
    From: Captiv8r [email protected]
    Sent: Wednesday, February 16, 2011 3:59 PM
    To: Delaney, Sheri
    Subject: Captivate 3 Published file won't execute JavaScript
    Welcome to our community
    See if the following links help.
    http://forums.adobe.com/thread/473021#5
    http://forums.adobe.com/thread/473021#10
    Cheers... Rick
    http://www.robowizard.com/pc.gif
    Helpful and Handy Links
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=5
    http://www.ShowMeSolutions.biz
    http://sorcererstone.wordpress.com/
    http://www.gooberguides.com

  • Execute Javascript, window.print(), prints blank page in Captivate 7

    Hello,
    I'm fairly new to Captivate, and am no Javascript expert.  I've been trying to figure out how to print the last slide in project, which has a custom certificate.  I initially tried the print widget that comes with Captivate 7, but the scaling is off when printed.  There are no options to change the scale of the printed slide on the widget properties, so that seemed to be a bust.  I then tried to create a button to execute javascript when clicked.  In the script window I put, window.print(); now this works to bring up the print box, but only prints a blank page.  I'm not sure if it's something I'm doing wrong with javascript.  I've been reading other forum posts, and this function seems to work for others using different versions of Captivate.
    I know there is a cool print widget that someone has made, but I'd actually prefer to just do this with javascript.  I haven't tried the buyable print widget yet, but I am trying not to use widgets so that the html can be scalable. 
    I'm publishing my projects and uploading them to GoogleDrive, where I then preview the html output.
    I'd appreciate any help.  Thanks!
    Kailey

    Wow, thank you for such a speedy response Rick.  I've actually been using Firefox and Google Chrome, because IE isn't updated enough to work with Google Drive properly (and I don't want to go through the whole process to get privileges to update on work computer).  But I did check this box in Firefox.  Instead of printing the objects on my slide, it printed a big square light grey background.  It's almost like the the browser can't see the project.
    I would think this was a browser problem, but I had previously downloaded a trial of Articulate (trying to decide between the two), which has the same execute javascript function as Captivate.  Putting in window.print();, publishing, and uploading to Google Drive, printed just fine.  Not sure if something in the code in Captivate isn't coming through, but is in Articulate.  I'm not versed in html or javascript enough to compare the two html files. 
    Back to the drawing board!  Thanks for your help.
    Kailey

  • Execute JavaScript and Button

    Hello Forum,
    I have a project anomaly. I have created about ten captivate
    projects, all using a similar (almost identical) menu system.
    This is basically an ending slide with three buttons on it.
    One button has an Execute Javascript action tied to it. my code
    there is a function to open a separate browser window when the
    button is clicked. I wrote the function to open the window in the
    "standard.js" file that Captivate publishes. I am using Captivate
    3. In 8 of these projects, when the button is clicked it opens the
    browser window.
    In two of thses projects the button makes a nice click sound,
    I see a quick screen/window flash, but no new browser window!
    Same button same code same standard.js file.??? I checked a
    button that works, and compared its properties to one that does not
    work, they all have the same numbers, etc. I gave up.
    Then I copied a button that works from an app that works, and
    copied that button on to the project where the button did not open
    the window. Deleted the "bad" button, revised the link address in
    my call to the function: wopen("
    http://info.mysite.com"); and
    this works!
    I have been using the standard Text button for these apps.
    Any ideas on this one??? the publishing for the programs is
    all the same (Flash Player 9, etc)
    Thanks,
    eholz1

    @Erickj:  Either do what Rod stated (adjusting your Flash Security settings) or test your content from a true web server.  Flash automatically trusts content coming off a true web server where the web address begins with http or https and ends in .htm or .html. 
    The nice thing about Cp 7 is that it has a built-in web server so you don't run into issues like this when testing your content.

  • How to execute javascript?

    hi all,
    how to execute javascript code in our objective-c, is there any api? suppose i want execute the code
    <script type="text/javascript"
    src="http://www.google.com/jsapi?key=ABQIAAAAO1slybBNbjKwDVr_bO5qxQ3Ib9Aa-xgEU0YCgCQd4sHEEyygRTJoMiR_tlaeIJegVqgl85s-kvLA"></script>
    <script type="text/javascript">
    google.load("maps", "6");
    google.load("search", "1");
    how to execute this code please help for me..
    Regards,
    Karthik

    hi,
    thanks for reply, i am somewhat understand that UIWebView used to load the webview, but i want to use the google map api Javascript for my application, how to incorporate that, also how to load a google map link,
    Regards
    Karthik

  • Executing Javascript with button

    How can I go about executing javascript with an item level button?
    In the HTML DB 2 day tutorial it says this:
    Calling a JavaScript from a button is a great way to confirm a request. Oracle HTML
    DB actually uses this technique for the delete operation of most objects. For example,
    when you delete a button, a JavaScript Alert Box appears asking you to confirm your
    request. Consider the following example:
    <script language="JavaScript1.1" type="text/javascript">
    function deleteConfirm(msg)
    var confDel = msg;
    if(confDel ==null)
    confDel= confirm("Would you like to perform this delete action?");
    else
    confDel= confirm(msg);
    if (confDel== true)
    doSubmit('Delete');
    </script>
    This example creates a function to confirm a delete action and then calls that function
    from a button. Note that the function optionally submits the page and sets the value of
    the internal variable :REQUEST to "Delete," thus performing the delete using a process
    that conditionally executes based on the value of request.
    Note that when you create the button you would need to select the Action Redirect to
    URL without submitting page . Then, you would specify a URL target such as the
    following:
    javascript:confirmDelete('Would you like to perform this delete action?');
    Can I only do this from a region button?

    hi,
    I have created a javascript form validation and finally (if its passes the validation) I am setting the :REQUEST as doSubmit('GO');
    I am calling a conditional process with condition as request = expression1
    with expression 1 as GO.
    The javascript is as follows
    function message_name_not_null(){
    if(document.getElementById('P14_MESSAGE_NAME').value.length==0)
    alert("Message Name is Mandatory!!");
    return;
    else if(document.getElementById('P14_MESSAGE_TEXT').value.length==0)
    alert("Message Text is Mandatory!!");
    return;
    else
    doSubmit('GO');
    My problem is my process is not getting called in button click(I have called the javascript from this button as javascript:message_name_not_null(); in Optional URL Redirect section)
    I have specified the :REQUEST value in the branches also.
    Any sort of help please..
    Thanks in Advance
    Kaushik

  • How to execute javascript code in VBScript?

    I'd like to execute similar javascript code for some particular PDF files(parameters for pagenumber are quite different),such as:
    this.setPageLabels(0, [ "A", "", 3] );
    this.setPageLabels(1, [ "r", "", 1] );
    this.setPageLabels(16, [ "D", "", 1] );
    How to write the code in VBScript?
    Thanks in advance!
    P.S. I try to add code but end up with error messages
    =================================================================
    path = "E:\test.pdf"
    '//Write the first and last pagenumbers and label to a txt.
    set oWs = CreateObject ("Wscript.Shell")
    set fs = CreateObject("Scripting.FileSystemObject")
    oWs.run "Acrobat.exe"
    While not oWs.AppActivate("Adobe Acrobat") : Wscript.Sleep 1000 : Wend
    Set objArgs = WScript.Arguments
    if objArgs.Count = 1 then path = ObjArgs(0)
    Set gApp = CreateObject("AcroExch.App")
    Set AVDoc = CreateObject("AcroExch.AVDoc")
    If (AVDoc.Open(Path,"")) Then
    Set AVDoc = gApp.GetActiveDoc()
    Set PDDoc = AVDoc.GetPDDoc()
    Set JSO = PDDoc.GetJSObject
    '// Write Bookmark JS to a variable
    Ex = " var vTOC = """"; "&vbLF _
    & " var s = """"; "&vbLF _
    & " var i=0; "&vbLF _
    & " p = i+1; "&vbLF _
    & " vTOC += ( this.getPageLabel(i) +""|""); "&vbLF _
    & " i= this.numPages-1 ; "&vbLF _
    & " p = i+1; "&vbLF _
    & " vTOC += ( this.getPageLabel(i) +""|""+p+""|""); "
    ' // Execute the JavaScript
    Set AForm = CreateObject("AFormAut.App") 'from AFormAPI
    AForm.Fields.ExecuteThisJavaScript EX
    ' // Write Bookmarks to CSV (PageNr;Level;Text)
    Set JSO = PDDoc.GetJSObject '//->renew JSO for some unknown reasons
    xf = jso.vToc
    Set objIE = CreateObject("InternetExplorer.Application")
    objIE.Navigate("about:blank")
    objIE.document.parentwindow.clipboardData.SetData "text", xf
    objIE.Quit
    CsvFN = left(path, InstrRev(path, ".")-1) &"_page.txt"
    set FL = fs.OpenTextFile(CsvFN, 2, true) '//-> 2=ForWriting
    xWr = split(xf,"|")
    for x=0 to UBound(xWr)
    FL.WriteLine xWr(x)
    next
    FL.Close
    Else
    MsgBox "Failed to Open: " & Path
    End If
    Set JSO = Nothing
    Set PDDoc = Nothing
    Set AVDoc = Nothing
    Set AForm = Nothing
    Set gApp = Nothing

    If I remember right, I wrote this script a while back to demonstrate how java script can be direct executed and how you can get back the results. Didn't I wrote a commentary to that?
    However the parts you need:
    ' // Write JS code from help file or whatever to a VBS variable:
    JsFromHelp = " this.setPageLabels(0, [ ""A"", """", 3] ); "&vbLF _
    & " this.setPageLabels(1, [ ""r"", """", 1] ); "&vbLF _
    & " this.setPageLabels(16, [ ""D"", """", 1] ); "
    ' // Execute the JavaScript
    Set AForm = CreateObject("AFormAut.App") 'from AFormAPI
    AForm.Fields.ExecuteThisJavaScript JsFromHelp
    From the rest keep only:
    end if
    set .. = nothing
    Untested, but should work - as far as you have a little bit more then only Reader.
    HTH, Reinhard

  • Javascript calling .exe file

    It's possible to execute this on oracle apex on submit page or on button click?
    <script language="javascript" type="text/javascript">
    function RunEXE()
    var oShell = new ActiveXObject("WScript.Shell");
    var prog = "c:\\WINDOWS\\system32\\notepad.exe";
    oShell.Run('"'+prog+'"',1);
    </script>
    If afirmative, how can i to do it?

    You are NOT advised to do this in APEX... Running VBScript is a VERY BAD IDEA and can open your users up to MANY NASTY things... What exactly are you looking to do here??
    Thank you,
    Tony Miller
    Webster, TX
    What if you really were stalking a paranoid schizophrenic... Would they know?

Maybe you are looking for