Sitemap

Amicuk Programming Answers

Having trouble implementing Captivate simulation in an iFrame

-0001-11-30   Views:1

Advertisement

Hi all, hoping you can give me some pointers. I'm trying to implement Captivate scalable html5 simulations in a proprietary LMS that requires that I place it in an iFrame.  It works, but the scaling is not working properly.  Immediately upon loading,

Hi all, hoping you can give me some pointers.
I'm trying to implement Captivate scalable html5 simulations in a proprietary LMS that requires that I place it in an iFrame.  It works, but the scaling is not working properly.  Immediately upon loading, the Captivate content is too large for my frame, although it does resize (still too large) when I scale the page. 
Are there any known tweaks for this kind of issue?
Thanks in advance,
Jill

The replay answer
Advertisement
Not sure if you still need this, since it has been nearly a month.
But I just ran into this same issue.
Require using HTML5 with Captivate inside of an iFrame.
The "Scalable html" was ignoring the iframe's dimensions, and using the full window dimensions instead.
What I ended up doing is stop using the "scalable html" option when publishing from captivate. and then i used the following javascript inside the html that the iframe was placed:
    <script type="text/javascript">
        var iframeName = 'trainingVideo';
        this.FindZoomHeight = function () {
            var slideshow = $('#main_container', $('#' + iframeName).contents());
            var showHeight = $(slideshow).height();
            var frameHeight = $('#' + iframeName).height();
            if (frameHeight >= showHeight) { return 1; }
            return (frameHeight / showHeight);
        this.FindZoomWidth = function () {
            var slideshow = $('#main_container', $('#' + iframeName).contents());
            var showWidth = $(slideshow).width();
            var frameWidth = $('#' + iframeName).width();
            if (frameWidth >= showWidth) { return 1; }
            return (frameWidth / showWidth);
        this.SetZoomLevel = function () {
            var zh = FindZoomHeight();
            var zw = FindZoomWidth();
            var zoom = 1;
            if (zh < zw) {
                zoom = zh;
            } else {
                zoom = zw;
            var container = $('#main_container', $('#' + iframeName).contents());
            $('body', $('#' + iframeName).contents()).css('-moz-transform-origin', '0 0 0').css('-o-transform-origin', '0 0 0').css('-moz-transform', 'scale(' + zoom + ')').css('-o-transform', 'scale(' + zoom + ')');
            $(container).css('zoom', zoom);
        $(document).ready(function () {
            $(window).resize(function () {
                SetZoomLevel();
        $('#' + iframeName).load(function () {
            SetZoomLevel();
    </script>
This uses the css zoom property. (uses transform scale in firefox/opera..but captivate doesn't support those browsers anyways)

Go to See the other 2 answers

Having trouble implementing Captivate simulation in an iFrame

Category:DefaultRelease time:-0001-11-30Views:130

Hi all, hoping you can give me some pointers. I'm trying to implement Captivate scalable html5 simulations in a proprietary LMS that requires that I place it in an iFrame.  It works, but the scaling is not working properly.  Immediately upon loading,[More]

Interactive Captivate simulations not working correctly in Presenter

Category:DefaultRelease time:2015-10-11Views:130

Hi, I'm looking for a fix for what appears to be a bug with importing interactive Captivate 2.0.0 (build 1177, originally a trial verson) files into Presenter 6.0.432 (in PowerPoint 2000 SP-3 9.0.8952 on a Windows XP computer). The course works fine[More]

I am having trouble Trouble implementing one-way SSL on WebLogic 9.2...

Category:DefaultRelease time:-0001-11-30Views:130

I am having trouble Trouble implementing one-way SSL on WebLogic 9.2. I am using Demo Identity and Demo Trust certificates with a SSL Listen Port Enabled on 7002, and a Two Way Client Cert Behavior of Client Certs Not Requested. I assume that by usin[More]

Trouble viewing Captivate 8 published output.

Category:DefaultRelease time:-0001-11-30Views:130

Trouble viewing Captivate 8 published output.  I created a course for a client who also wants a video of it.  I published and I can see it on my end, but when I send them the files using DropBox, they can't open the .SWF, the Chrome.HTML, or the AVI[More]

Troubles implementing SAP Note 765494

Category:DefaultRelease time:-0001-11-30Views:130

All, I am trying to implement note 765494, but I have troubles implementing it. The note tells me to do the following: <b>12. Extend the private section of the CL_PO_ITEM_HANDLE_MM class to include the PO_EKPVX_HASH_TABLE attribute with the followin[More]

Implement an initial state in iframe for rss reader

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I am using the latest spry framework 1.6.1 and have implemented the rssreader in a web page. I have not changed any of the code on how this works but just modified the stylesheet to change its appearance. When the page is first loaded there is no[More]

How do I configure Captivate simulations to treat captured keystrokes as textboxes?

Category:DefaultRelease time:-0001-11-30Views:130

I am using Captivate 7 to capture command-line interactions on a Windows 8 system and need it to treat the keystrokes used for each command as textboxes when the simulation is run.  Is there a way to configure this?  If not, is there another Adobe pr[More]

Problems Playing a Captivate Simulation

Category:DefaultRelease time:-0001-11-30Views:130

I have published a project using Adobe Captivate. Some users have the first slide play and then the simulation automatically stops, if you press the next button in progress to the next slide but the slide stay on the screen and the audio continues. O[More]

Adobe Reviewer buttons interfere with Captivate simulation

Category:DefaultRelease time:-0001-11-30Views:130

Utilizing the Reviewer buttons (forward, back, Add comment) affects the simulation in Captivate 4.  For example, after adding a comment, the buttons on the screen no longer work.  Utilizing the back and forward buttons can result in you getting stuck[More]

Captivate Simulation Tutorials

Category:DefaultRelease time:-0001-11-30Views:130

How do I actually create a simulation in Captivate?  I can see that I can in this video around 2:08, but I cannot find a tutorial that teaches me! http://tv.adobe.com/watch/from-our-evangelist-/application-simulation/Hi there One way is to record a s[More]

Captivate Simulation doesn't seem to stream

Category:DefaultRelease time:-0001-11-30Views:130

I created a simulation regarding some processes we use in our Saba LMS, but the content piece seems to load in full before playing. It doesn't load the first page/s and then load others in the back ground. Is there something I am doing incorrectly. I[More]

Hot
So I have a Mac iBook and it says I'm on the latest version of iTunes but when I plug in my iPhone it says that I need a newer version And I want to move music onto my phone, what do I do?If you have an iBook G4, (PPC) you can't do much. But if that [More]
I purchased Lion 10.7 on Christmas Day, I received my redemption code a week later. I've tried to download Lion to no avail. I've been in contact with Apple Support and they haven't been much help so far. My computer is currently running Snow Leopart [More]
I have an iPhone 4s with iOS 7.0.4 (11B554a) and iTunes 11.1.3.8. I am running into problems when I drag music or audiobooks from my iTunes library to my iPhone. 1. I originally dragged an audibook to my phone and it stayed "greyed out" in iTune [More]
Hi there I would like to transfer my iTunes library from my PC to my MacBook Air or if possible to an external hard drive that I use to back up my Air. I understand that you can't use the same hard drive for PC and Mac. Would really like to do away w [More]
My iPhone 5 screen moves its self and opens apps it self how do I fix that?Disabled Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased. iOS: Wrong passcode results in red disabled s [More]
Hi All, I have an issue with performance of the database. I noticed my database performance is very slow for the last 2 months. And recently i had made some changes in my database (like changing the NLS character set of my database) but prior to that [More]
Hi Guys: I have a Mac OSX 10.6.3 laptop withbootcamp  assisted Windows 7 installed on it. Under Mac OSX, when I attempt to  use the microphoe feature, the screen freezes a little bit but works. Under  Windows 7, the audio locks up the entire browser [More]
How can I change the size of the FINDER toolbar so that its eaier to read i.e. make the text bigger. How can you move the orientaion of the left side menus so that they sit above a document when using word. If you have a single document open you tend [More]
Hello All I am looking at a way to add a new custom field in MARC and make it available on MM46 screen. When mass update is executed via MM46, I want that field to be updated as well. Please provide me with the right steps to get it done. Thanks a lo [More]
Hi there. The fact that i'm using an old version of Premiere isn't relevent, please do not ask me to upgrade. I've had the same problem with the same version on my old cumputer by the end, but it works perfectly for the first couple of months. Howeve [More]