Is there any way I can jump to a specific slide in a project, instead of jumping to the first slide of the project, from a different project.
Currently at the end of this project there is the opportunity to review certain areas from the first project. These areas start at slide13. On restart it currently jumps to slide 1.
Any help would be great
thedarf
It's not possible to do "out of the box", but I can think of a couple of workarounds if you are using Adobe Captivate 4.
One workaround would be to have a custom Flash file in your project that recieves instructions through FlashVars (parameters in the URL).
Another option would be a JavaScript approach where you create a JavaScript in your HTML file that will send the project to the correct slide based on a variable in the URL.
/Michael
Visit my Captivate blog with tips & tricks, tutorials and Widgets.
I don't think that will be possilbe Lilybiri but I would love to be proved wrong ;o)
If I understand it correctly we are talking about two separate project files. If you want to jump from slide 5 in project one to slide 10 in project 2 how will you do that? You could ofcourse make an advanced action on slide 1 in project two that sends it to slide 10, but then you would never be able to view slide 1-9 in project two ![]()
/Michael
Visit my Captivate blog with tips & tricks, tutorials and Widgets.
Hi all
Okay, way cool solution here. RJ Jacquez sent out a tweet two Fridays ago stating that he was posting a solution to that. Unfortunately, I missed seeing the result but managed to find it today. (I was busy facilitating a class last week)
The good news is that it actually can be done! I just downloaded the example and it works. And it's not too difficult to achieve.
Note that you have to have Captivate 4 to accomplish it, because it relies on programming an Advanced Action.
So here is how it works.
In the Captivate movie you are wishing to open at a different slide, you create an Advanced Action. (Click Project > Actions... > Advanced actions)
Click the drop-down and choose "Create a new action..."
Type a name for the action.
Click the Add Statement area to place focus there.
Press the Spacebar. (Statement should appear and should turn red)
Press the Spacebar again and a drop list should appear.
Choose Standard Action.
Choose the Execute JavaScript action.
Copy the script below and paste it into the area where you are expected to type the script.
if(window.location.href.indexOf("?slide"!=1){var slideNumber=window.location.href.substring(window.location.href.index Of("?slide")+7);var cp = document.getElementById("Captivate");cp.cpSetValue("cpCmndGotoSlide", slideNumber-1);cp.cpSetValue("rdcmndResume",1);}
Click Save.
Click Close.
Edit slide one of the project.
In the Slide Properties, choose Execute advanced action for the "On slide enter" action.
Assign your action.
Now you publish that out.
From a Captivate movie that wishes to open this movie at perhaps slide 3, you program the Button or Click Box so it opens the HTML file of the other Captivate movie and supplies the slide number as a parameter.
The example below shows slidejump.htm?slide=3
Hopefully this helps... Rick ![]()
Helpful and Handy Links Captivate Wish Form/Bug Reporting Form |
That's a very clever solution Rick. Where did you find that posted?
I never thought about doing it through Advanced Actions directly in the project. I have done it with a JavaScript embedded in the HTML file that loads the Captivate swf earlier but this solution is much easier.
/Michael
Visit my Captivate blog with tips & tricks, tutorials and Widgets.
Guys and gals
Big Thanks to all for your assistance here. I am in Australia so our time zones are a bit different; I had all this wonderful news waiting for me when I came to work this morning.
I thought there would be a solution in advanced actions and some scripting; but I am just not experienced enough in the scripting to write something, to me, this complex.
Can't wait to try it out, even though the work around I used was just to create a special project with just that information on it; have a url link to it that then takes them back to the mainstream project when they are finished.
The worst thing of it all is that this part is voluntary, so out of about 5,000 users there will probably be 2 people who utilise it!!![]()
Once again thanks for all the help and advice
cheers
thedarf
Does anyone know if this solution works for Captivate 5? and i am kinda rusty on my JavaScript and wondering if this would mess up if say....I went from one slide in the project to another (such as the end of the project to the middle of another) but had one slide that could go back to the beginning of the original project?
Edit:
Sorry that sounded really confusing...i mean if I move from Module A to B to C then back to A (from the slide after the one i had left) could B have a back button that would take me back to the slide it left while still letting C move to the one after the slide i had left?
Thanks,
Kyle
I know this has been a long time. I am now more experienced with Captivate 4, I Think ![]()
I have been trying to run this advanced action but I can not get it to go to a specific slide, it always goes to the first slide of the movie.
I have created the action and called it 'Jump'. I have followed the directions in this posting; but it always goes to the beginning of the movie and not the individual slide in that movie.
The action in the other captivate movie that opens the target movie shows the html file and the ?slide# in the 'On Success' field. Somehow it doesn't appear to be reading the slide number reference. If I delete just the slide reference it goes to the first slide of the movie the same as if I have it included.
Here is the 'On Success' Open URL action: intranet/e-learning/ICTInduction/MainMenu/MainMenu.htm?slide=24
I have been looking for the post you mentioend by RJ Jacquez but I have had no luck finding it.
My links are currently absolute and not relative but I can't see this making a difference as I develop all the movies in absolute before I change them to relative.
As always any assistance or advice would be appreciated.
thedarf
Jim Leichliter wrote a blog post in answer to my question, related to Captivate 5
(http://captivatedev.com/2011/05/01/how-to-jump-to-a-specific-slide-in- a-separate-course/)
Adjusting your javascript to look like Jim's, and using the timeout method, might get your video to work.
Remember - javascript generally only works if you are viewing off a webserver, or off a simulated webserver with the F12 preview in Captivate 5 (it is earlier?)
Something I use as a local webserver is Tiny Java Web Server (http://tjws.sourceforge.net/). It's a little, java based web server that I can run from a folder on my desktop (or elsewhere).
North America
Europe, Middle East and Africa
Asia Pacific