Skip navigation
Currently Being Moderated

advanced action appears looped -Captivate 6

Aug 5, 2012 11:59 AM

Tags: #url #advanced_actions #captivate_6

    I have an HTML5  project that links out to another URL page on about 5 slides.  Jim was kind eough to inform me that there is a known issue about Captivate linking to URLs that are not hand typed. All of the URLs are hand typed, and all advanced actions are set up so that on the last click fo the button, the slide should advance to the next one, and the URL should open in a new tab (in that order) .  This happens perfectly on the first set, but the second set doesn't advance the slide, it just opens the new window. If you return to the captivate window and click the next button it respawns the new window, never going to the next slide.  I've cleared the project on my webserver, forced slides to be-recreated, rebuilt the advanced action, all with no effect.  Anybody else running into anything simiilar?

 

This is a bit of a show stopper for me since I don't want to just have to code a button - my hope was to make this run like a native iPad app, but if I can't take away the chrome because users have to have it to navigate it can't be done.

 
Replies
  • Currently Being Moderated
    Aug 5, 2012 1:31 PM   in reply to rhybeka32

    Try using a bit of Javascript to do the advancement instead doing the assignment throught the advanced actions panel.

     

    So in your advanced action get rid of:

    Assign cpCmndNextSlide = 1

     

    and do an execute JavaScript action and use this bit of JavaScript:

    cpCmndNextSlide = 1;
    

     

    Publish for HTML5 and test on a real web server.  I typically do testing on my local web server.

     

    Hope that helps,

     

    Jim Leichliter

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 2:22 PM   in reply to rhybeka32

    Try including it.  It does not need to be separate.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 2:47 PM   in reply to rhybeka32

    When you publish for HTML5, you have a whole new JavaScript API available to you and the captivate movie control variables are actually global JS variables.  So it would be something like this:

     

     

    function forward() {
         cpCmndNextSlide = 1;
    }
    
     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 3:47 PM   in reply to rhybeka32

    Try navigating to the next slide first, then open the new window...

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 4:33 PM   in reply to rhybeka32

    Try viewing in Chrome with the console open (CTL + SHIFT + J).  Are you getting any errors?  Always debug and troubleshoot with the console in Chrome, or with Firebug in FireFox.  It will tell you exactly what's going on... and you can even step through the JS code to see the order of operations.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 5:43 PM   in reply to rhybeka32

    What does the JS look like in your advanced action? (need screenshot).

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 6:09 PM   in reply to rhybeka32

    Looks like you've defined the functions, but have not called them.

     

     

    //call functions
    forward();
    open_win();
     
    
     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 6:14 PM   in reply to rhybeka32

    Add this to your existing JS code at the bottom:

     

     

    forward();
    open_win();
    
     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 6:46 PM   in reply to rhybeka32

    Glad to hear it Rhybeka!  I wish you success on your project!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points