Phone Gap In App Browser Javascript

I am creating a IOS iPad App version of my elearning course using the Captivate 7. I am also using Phone Gap's Cordova's InAppBrowser javascript to open links in the IOS.
in Captivate 7 I am using a button and the execute Javascript action below to open links.
I have built and tested the the app using the Captivate App Packager and Phone Gap Build and it works well.
When the button is selected to view the external PDF a new IOS native screen apears and the user can see the PDF the user can also close the resource and go back to the app by selecting the "Done" button.
If the user then opens that same pdf again then closes it, it jumps to the next slide in the captivate course this only happens the secound time the users selects the same button to veiw the PDF resource.
How can I stop this from happening? Is there same sort of confliction with other javescript being used on the slide? I am using the pause function on buttons to stop it continuing to the next slide as well.
Thanks,
Oliver

Hey, thanks for your reply I have fixed it now! I created a advanced action as you suggested and placed a pause action after the custom JS was executed.
Thanks,
Oliver

Similar Messages

  • Phone Gap IOS App Help!

    I would like to know how to build an App with Phone Gap from my Adobe Muse files.  When the user goes to the mobile site I want them to click a link to download the App to their Homescreen on their mobile phone.  Then the user will only have to click the App on their home screen to get to the mobile site and not have to type the URL in their browser every time.
    Thanks.

    Try Restoring as new, i.e. without your backup.

  • Using browser javascript to copy selected text from a pdf file opened in Air app.

    I have posted this question on reader forum as well, but I think it is more suited here...
    I am trying to create a note-taking application in air. I want to extract selected text from pdf file as a string object or to the clipboard.
    Obviously, all pdfs in my local storage will not be scripted to recieve postMessages and act accordingly, and that is not practical either. So, my problem is, how can I copy the selected text in the pdf file (opened as an object in htmlloader within my Air app) to clipboard or directly in another control by say clicking a button in air application? I suppose, this is possible using javascript, however, I don't know which reader methods are exposed to the wrapper htmlloader control. In short, I want to execute app.execMenuItem("Copy") command through htmlloader javascript. Any alternate solutions are also welcome.
    This is similar to passing inbuilt commands/methods/functions (of adobe reader) to pdf-reader plugin embedded in a webpage via javascript. This is possible in IE where the pdf is rendered as activex object, and hence JSObject interface of pdf document/reader is accessible to the browser javascript. I have also read that this same JSObject is accessible to VB as interface for IAC, so as the Air is Adobe's own product, I was wondering if equivalent of JSObject is accessible to htmlloader control as well.
    Thanks in advance...
    Mits

    Thank you Thom for your reply...
    from
    http://www.adobe.com/devnet/acrobat/javascript.html
    ...Through JavaScript extensions, the viewer application and its plug-ins expose much of their functionality to document authors, form designers, and plug-in developers...
    As it is explicitly mentioned, that the functionality of adobe reader are exposed for plugin development, I thought someone here might have used external javascript to execute some safe methods in adobe reader. The functionality (i.e. external javascript interface-JSObject) is already available for VB programmers to develop IAC. Further, the Acrobat SDK example called "AcroPDFinHML" shows how one can embed a pdf-reader in a html page and execute some safe methods (like gotonextpage(), zooming etc.) in IE as ActiveX plugin. I have checked it myself for adobe reader 9, and it works perfectly, so there is no security issue as such to implement the same for another browser (like in my case, the htmlloader control in flex/air app).
    I intend to create a note taking application in air, where it is very much required that I should be able to copy selected text from various pdf documents, that are open in my app, and subsequently paste/collect/save the collected notes and process them afterwords (offcourse, from the pdfs that allow me copying text). However, it is not happening for me here. As the pdfs are opened through adobe reader plugin, it does not register the copy command executed by my air app. It registers the system level copy command (by keyboard shortcut Ctrl+C), but my air app has no way to execute the system level copy command programmatically. So I am kind of stuck here...
    Thanks again for your reply. Having known what am I intend to accomplish, any other (may be alternative) solutions will be appreciated nonetheless...
    Mits

  • Phone gap child browser

    how to build android, ios app using dreamweaver and phone gap build service
    i've try to build it but failed, i've used window.location html code and just pop up
    i want inside in android, ios app
    what is a phonegap.js and childbrowser.js?
    1. i cant find file phonegap.js and childbrowser.js where can i get it?
    2. how to configure it?
    so help me i;ve frustated

    This may help.

  • Publish as APP/Phone Gap?

    Hi -- Can anyone point me to or provide step-by-step instructions on how to publish an 8.01 project as an app using PhoneGap?

    I am not very experienced with using Phone Gap and the command line but i can tell you a different approach. Captivate offers an easy way to develop your project using Phone Gap Build.
    Export to ios and android using captivates Publish feature. Open your project in captivate. Towards the top of the screen there will be a "Publish" option, click on that and then click on "Publish For Devices(APP)"  Once you do that, you must sign into your phone gap build account and then enter in the certificate information for either Andriod or IOS. However, getting the certificates takes a little while to explain. You'll have to figure that out with a google search or two.
    From there it is pretty self explanatory. Select Publish. Navigate to your Phone Gap Build account and the app will be waiting there for you to download.

  • PHONE GAP APPS I HAVE ABILITY PROVIDE SMALLER LAYOUT, DEPENDED ON ORIENTATION

    IN MOBILE HTML5 WEB OR PHONE GAP APPS I HAVE ABILITY PROVIDE SMALLER LAYOUT, DEPENDED ON ORIENTATION OF DEVICE?

    Css3 media queries
    Can fix orientation by Width?
    LIKE:
    <link rel="stylesheet" media="only screen and (min-width: 768px)" href="responsive-700.css" />
    lsepolis123 wrote:
    IN MOBILE HTML5 WEB OR PHONE GAP APPS I HAVE ABILITY PROVIDE SMALLER LAYOUT, DEPENDED ON ORIENTATION OF DEVICE?

  • If I get the photography plan does it come with phone gap build (the 25 private apps) or do I need to purchase them seperately

    I have been using the phone gap build service and I noticed that the plans page links to the Creative Cloud plans as well (the ? in the top right). I was wondering if I get the photoshop/lightroom plan if I get access to the paid phone gap build service or if I need to purchase that as well?
    Thanks.

    Phone Gap is not part of the photography bundle. Why should it? You do not get Dreamweaver or Flash to actually build content for Phone Gap, only PS and LR.
    Mylenium

  • JQuery Mobile on Phone Gap for Android DW CS 5.5

    Hi,
    I thought that I should take my dynamic Jquery Mobile site to the test as a native application by building it with the Dreamweaver CS 5.5 Phone Gap extension. Building it and getting it up as an application on the Android SDK emulator was pretty straightforward.
    The Jquery Mobile site consists of 1 multipage page starting with a login form (userid, password and a submit button). The PHP page with the MySQL database access is called using AJAX. If login successful, PHP returns an XML array with a number of categories that will be listed (ul/li) on the subsequent page. Now, this is all we need to know for now.
    The corresponding Phone Gap application loads fine on the Android emulator, a click on the app icon kicks off the splash page and the login form comes up exactly like it does when run as a Jquery Mobile web page but nothing happens when I click the submit button. Trying to understand I started the emulator loggin (adb logcat) and found this (I am listing only the latest log items):
    ===
    I/InputDispatcher(   74): Dropped event because it is stale.
    D/dalvikvm(   74): GC_CONCURRENT freed 525K, 14% free 9234K/10695K, paused 37ms+46ms
    D/dalvikvm(  396): GC_CONCURRENT freed 896K, 13% free 6997K/8007K, paused 23ms+40ms
    D/dalvikvm(  137): GC_CONCURRENT freed 457K, 6% free 7729K/8199K, paused 24ms+11ms
    D/SntpClient(   74): request time failed: java.net.SocketException: Address family not supported by protocol
    W/webview (  396): Stale touch event ACTION_DOWN received from webcore; ignoring
    W/webview (  396): Got ACTION_DOWN but still waiting on stale event. Catching up.
    W/webview (  396): Stale touch event ACTION_DOWN received from webcore; ignoring
    ===
    Every time I click/tap the submit button I get "Stale touch event..." which I strongly relate to that nothing happens.
    Anyone tried this (Phone Gapping Jquery Mobile) or having a clue of where to look next?
    Thanks
    /Ralf

    wow....Matt is has been a while since i first build the sample app using the jquery mobile and phonegap in DW5.5. Since I faced lots of challenge with getting the app to talk to mysql, i decided to go with "Flash Builder 4.5.1". I have already develped and deployed both android and ios app using flash builder.
    I don't recall how i develped the sample app with jquery mobile and phonegap in DW5.5. As far as i can recall...i followed a tutorial provided on Adobe Developer Connection under DW5.5. I don't have the link anymore...i will try to find it for you.

  • Connecting Dreamweaver with Phone Gap Build

    Creating my first mobile app using Dreamweaver CS 6. I've created a site using dreamweaver with the DW JQuery Mobile sample. I've also created a PhoneGap account (free). When I try to connect with Phonegap Build it says "Project Settings file was not found for this project" and tells me to select "Create as a new project" which I did and then clicked "Continue". The spinning pole above spins for several minutes and then tells me it must be having a server error. It's done this several times over the past few days...sigh.
    I then tried going to Phonegap and it gives me an option to upload a zip file, but what is supposed to be in the zip file and how do I create it in Dreamweaver? I can't find any documentation to help get me started.
    I'd really appreciate any direction you can offer.
    Thanks,
    Tony

    Hi,
    I don't really understand your question about the site root access. The mobile app is in a folder which is part of the main web site.
    Here's 3 images, the first shows the start when I select Phone Gap Build, the second shows where it is trying to create a new project and the third is the failure message that shows after several minutes. - Thanks. Tony

  • Phone Gap Build in DW is gone

    In case you haven't heard yet, the link to Phone Gap build in DW is deprecated.
    From now on, go directly to the Phone Gap Build web site.
    See link below for details:
    Dreamweaver Help | Packaging web applications as native mobile applications with PhoneGap Build
    Nancy O.

    Dont worry I fixed it now I had to go into the Captivate 7 App Packager files and edit the xml.config file in the resources folder by the way the latest version of phone gap is 3.2.0 but it didnt except that so i used 2.9.0

  • Modifying Phone Gap Accelerometer Code to identify when the axis is being tilted

    Hi there, I am currently trying to create a phone application, one of the features that I am working on is using the Phone Gap Accelerometer function, and viewing it through Ripple.
    Currently I can view the position of the X, Y and Z axis, and they change when you drag the device around, but what I want to do is create an IF statement, that will show what positions the axis has been tilted, and for the text to be displayed on the screen.
    <!DOCTYPE html>
    <html>
      <head>
        <title>Acceleration Example</title>
        <script type="text/javascript" charset="utf-8" src="phonegap-1.3.0.js"></script>
        <script type="text/javascript" charset="utf-8">
            // The watch id references the current `watchAcceleration`
            var watchID = null;
            // Wait for PhoneGap to load
            document.addEventListener("deviceready", onDeviceReady, false);
            // PhoneGap is ready
            function onDeviceReady() {
                startWatch();
            // Start watching the acceleration
            function startWatch() {
                // Update acceleration every 3 seconds
                var options = { frequency: 3000 };
                watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options);
            // Stop watching the acceleration
            function stopWatch() {
                if (watchID) {
                    navigator.accelerometer.clearWatch(watchID);
                    watchID = null;
            // onSuccess: Get a snapshot of the current acceleration
            function onSuccess(acceleration) {
                var element = document.getElementById('accelerometer');
                element.innerHTML = 'Acceleration X: ' + acceleration.x + '<br />' +
                                'Acceleration Y: ' + acceleration.y + '<br />' +
                                'Acceleration Z: ' + acceleration.z + '<br />' +
                                'Timestamp: ' + acceleration.timestamp + '<br />';
                                                                                                                        <---- I think here is where I need the IF statement!
            // onError: Failed to get the acceleration
            function onError() {
                alert('onError!');
        </script>
      </head>
      <body>
        <div id="accelerometer">Waiting for accelerometer...</div>
        <button onclick="stopWatch();">Stop Watching</button>
      </body>
    </html>
    Thanks in advance for any help, I am still at a very basic level in terms of creating mobile applications!

    You should be able to get some more precise information from your Xorg logs, but I would bet it is related to the evdev driver. Some of the options in your xorg.conf no longer work with the latest version. For now you should be able to either map your mouse directly to the appropriate /dev/event* entry or change to the standard mouse driver, both of those methods should be in the wiki.
    You are supposed to be able to use the evdev driver without the input section of your xorg.conf by using dbus/hal autodetection, but AFAIK at the moment the xorg-server package still isn't compiled with hal support, so you would have to patch and rebuild the package.

  • Browser Javascript call Acrobat Javascript function

    What I want to do is call a function in Acrobat Javascript by clicking a button in my browser.
    So if you click the browser button it executes a javascript function that calls an acrobat javascript function.
    I found this example:
    Browser javascript
    function printDocument() {
         var pdfObject = document.getElementById(\"PDFObj\");
         pdfObject.postMessage([\"alert\", \"Hello from HTML\"]);
    Acrobat javascript
    In the secure folder (C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Javascripts\kassa.js) my folder level script
    so this is executed for each pdf document.
    this.hostContainer.messageHandler =
         onMessage: function(aMessage)
              for(var i = 0; i < aMessage.length; i++)
              console.println("Recvd Msg[ " + i + "]: " + aMessage[i]);
          onError: function(error, aMessage){ },
          onDisclose: HostContainerDisclosurePolicy.SameOriginPolicy
    This should do the job...
    But if i look at the javascript debugger window(acrobat)
    it shows:
    this.hostContainer has no properties
    9:Folder-Level:App:kassa.js
    this.hostContainer has no properties
    9:Folder-Level:App:kassa.js
    Any solution for my problem?

    hi levi,
    Thank u very much for responding,
    to be precise i have to show the user a small window saying that the excel sheet is being prepared and once the sheet is prepared this window has to be closed. So to open and close this child window i need to use the javascript functions.
    currently my jsp looks this way
    <script>
         function open()
         funciton close()
    </script>
    <body>
    <script>
         open();
    </script>
    include x.jsp //sets the content type to excel
    include y.jsp //writes to the excel sheet
    <script>
         close();
    </script>
    <body>
    My x.jsp looks this way
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "filename=" + "abc.xls");
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader("Expires",0);
    response.addHeader("Cache-control", "no-store");
    response.addHeader("Cache-control", "max-age=0");
    The issue is the javascripts are not getting called at all. Is there any other way to solve this. Since i am the beginner in this field i dont have much idea about this. A code snippet will be of great help.
    Thanx

  • Facebook apps-enable javascript, all setting correct according to Mozilla help.

    Facebook apps-enable javascript, all setting correct according to Mozilla help.

    Hello CP752,
    It sounds like you are unable to delete the FaceTime account from your iPad. I would recommend closing all the running apps on the phone:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that and restart the phone and try updating the password again:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If it persists, I would next backup your device to iTunes with this article:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    And restore it from your backup with this article:
    Use iTunes to restore your iOS device to factory settings
    http://support.apple.com/kb/ht1414
    Since backups do not store your passwords, this should, as a last resort allow you to update your password properly.
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • In-App Browsing

    I've noticed a few of my apps have easy access to sites like YouTube and Google. Is in-app browsing saved to my phones default web browser or can this be accessed from Settings?

    I find this feature disappointing. When can we expect this to work for iPhone? It worked with previous versions, correct? Does this have something to do with Facebook's update and in-app-browsing through their app or is this related to a v29 update?

  • If I purchase creative cloud membership for only one program, will I get a paid adobe phone gap build account for free?

    $djd phonegap create my-app
    $ cd my-appIf I purchase creative cloud membership for only one program, will I get a paid adobe phone gap build account for free?
    $ phonegap run android

    There is no additional payment for phone gap build .
    Please refer to http://helpx-internal.corp.adobe.com/content/help/en/dreamweaver/kb/phonegap-build-cc-2014 -update.html
    Regards
    Rajshree

Maybe you are looking for