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 have to develop a ALV report. In that report i have to put a open quantity column , so that the user can enter values in that, and that value should get updated in the database. So please suggest me how to develop such report with open fiel [More]
Hi, I need to change the value of a substitution string which is mentioned in application attributes at runtime. The value will be fetched from a field in database on load of each screen. Can anybody help....... Help will be appriciated........thanx [More]
I can receive all of my emails correctly but can not send any emails. I have set up under a different program and it works fine. I have tried to update thunderbird by its settings and it does not provide any options?? I am running ubuntu 14.04lts. My [More]
Hi Experts , The following select query creates a dump called time out error, May be this is taking long time to execute . Please tell me how to fine tune this select query? select v1vbeln v2matnr          v2werks v1fkdat          v1knumv v1fkart     [More]
Hi friends, If anybody knows how to refresh an abap and java systems (not abap+java addin) can you please send the docs? Thanks.Hi,   Plz check this link for ABAP refresh. <a href="http://help.sap.com/saphelp_nw04/helpdata/en/fb/35c62bc12711d4b2e8 [More]
I have been working on a digital timeline project that will be viewed on an ipad in a museum that a visitor can scroll through and also see on a large screen above the kiosk. I have gone back and forth on the best application to use for this project [More]
Hi all, when i deploy my webapp thru eclipse,it doesn't show any error. but when i try to install thru eclipse it shows the following error: java.net.MalformedURLException: no protocol: ${tomcat.manager.url}/list can anyone help me?and give step by s [More]
Hi, I have a saved email message in MIME format. Some of the emails have attachments encoded using base64. I want to parse the message and extract these attachments. I started doing this in my class by looking for pattern only to realize that these m [More]
I read a bunch of threads that talk about not getting add-on images to work. I need to get them to stop working. I created an image that automaticly logs in as local admin on the first few boots. This works great as I found if you log into eDir appli [More]
I'm trying to open files (jpg, pdf) using preview but it doesn't work!! The message-box "Preview quit unexpectedly. Click Reopen to open the application again. Click Report to see more detailed information and send a report to Apple." appears!! [More]