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
Hi All, i am submiting concurrent program( which is a REPORT 6i) not geting ourput. it dsiplaying only columns. here i am expecting date problem. while i am passing the parameters, here i am sending two date parameters budget_date_from and budget_dat [More]
Hi! Sorry for my english! Can you tell me, how it is possible to have two these soundcards in one computer device? Is there any think I should to know when installing additional X-Fi into my computer?Microsoft ain't as dumb as you might think. Window [More]
I tried to open a site with an .mp4 video imbedded. The firefox browser told me that i needed a new version of flash player. So i clicked on the link and it told me that I can't download flash onto apple devices. I have an android phone. How do I wat [More]
Message Edited by ramiral on 04-06-2005 08:23 AM Message Edited by ramiral on 04-06-2005 08:23 AM labview 7.0Doug Read the Pages09_UserGuide.pdf downloadable from under the Help menu. +Inspector > Layout > Section > Page Nubers > Start at: > [More]
hI, I have been tearing my hair out for the last week I find it impossible to work out how to set up a slideshow in adobe golive cs - Does anybody know some simple tutorials on how to do it, as I find the online help with golive no help at all..! I h [More]
Guys, I am trying to set lookup query for my object form, but its giving me error "Required property not set". I have ran the query in sql client and its working perfectly fine. Thanks in advance. Thanks.Check this: LookupField with Lookup Query [More]
I am writing a large doc with FM (FM 8.0p277), several appendix files, 100+pages, etc. I am using hypertext to link external PNG images with the document. This is working just fine (message openfile:filename.ext). Then, I print as PDF doc, and still [More]
Dear All My technical system is EP7.0 and SLD based on SOLMAN (EhP1). I am getting error while trying to access SLD Data Supplier on VA 'Server -> Services -> SLD Data Supplier'. SLD_Collector_Task [email protected]:49:45: Data collection process starte [More]
Trying to install flash player on Mac  OS 10.6 w/Safari.  Ran uninstaller.  In troubleshooting guide, no version comes up in the box, and no error message. I have unblocked cookies and pop-ups. No firewall. Still, the download bar runs to completion, [More]
hello my friends: I need dome free example code about nested class and inner class . please help me ,if you can. thank you for attention. good byeWhy? If you write one class per source file there will be nothing that can be done in java that you cann [More]