Adobe Captivate 6.x Widget: Web Page Widget

 

 

Web Page Widget Settings

Adobe Captivate 6.x Web Page Widget

From: $80

Bring the web into your presentations.  This widget allows you to insert a web page into your Adobe Captivate 6.x web  and HTML5 projects.

Clear selection

Product Description

Bring the web into your presentations.  This widget allows you to insert a web page into your Adobe Captivate 6.x web  and HTML5 projects.

 

This widget was created using the awesome WidgetFactory framework. 

Live Demo – SWF Live Demo – HTML5

What can it do?

It can insert a web page using a:

  1. Web address such as: http://CaptivateDev.com
  2. Relative Path such as “myfolder/myHTMLFile.htm”
  3. HTML string such as “<html><head></head><body>Hello Wolrd Wide Web!</body></html>”
  4. Captivate User Variable such as $$UserVariable$$ that would contain the html syntax in a string like the above.
  5. You can pass variables to your server side script using variables in your URL parameters: http://mywebsite.com?user=$$v_StudentName$$

Use Cases:

  1. Inserting PDF files, videos, AS2 Legacy Swfs, Google Docs, Google Forms, Surveys from PollDaddy or SurveyMonkey, online calculators.
  2. Showing corporate policies that must be kept to date.  No need to republish your Captivate 6.x project every time a policy changes if you’re displaying a web page that already has the current info from your corporate intranet.
  3. Whatever you can stuff into a web page, you can now show inside of Captivate.
  4. Send Captivate variables to your custom script using #5 above.

Requirements

This widget must be used in a Captivate 6.x web project. Standard Preview (F4 or F12) will not display the web page widget properly. To make F12 web preview work, change your Captivate .htm publishing template to use a wmode of “opaque” or “transparent” instead of “window”. If you don’t you’ll notice at run time that if you click on the web page, then back on to the Captivate swf, your web page widget will vanish. Changing your .htm publishing template to permanently include the wmode setting will ensure that F12 web preview will work correctly.  The F4 standard preview will not work since the widget requires a web browser to function. NOTE:  If you are publishing  swf output, the associated .htm file needs to have one change where the wmode should be set to “opaque” or “transparent” instead of “window”.

so.addParam("wmode", "opaque");

You can create a new publishing .htm template with the wmode already defined so you don’t have to keep updating the wmode in your published .htm file every time you republish (it gets overwritten). To do this, copy an already existing .htm template file.  The standard .htm template is typically located at …\Adobe\Adobe Captivate 6\Templates\Publish\standard.htm.  Copy this file and Paste it to the following folder …\Adobe\Adobe Captivate 6\Templates\Publish\SCORM\1_2.  Open the file and set the wmode to “opaque” or “transparent” like the line of code above.  Name the file something recognizable such as standard_WebPageWidget.htm since it’s based off of the standard template.  Now inside of Captivate you can choose this template for publishing by going to Quiz””>Quiz Preferences QuizPrefEnable SCORM reporting (even though in our case we aren’t really using it at all), and pick your template from the drop down list.  You will end up with some of the SCORM files when you publish, but you can remove those when you are ready to upload to your LMS.  If you don’t want to use the standard template, you can choose another template to copy and modify.

More Requirements…

If you are using “Relative Path” as a display option, you will have to publish your widget’s .htm file to the Captivate publish location in order to view the presentation properly. Captivate has a bad habit of asking you if you want to view your newly publsihed project right after publishing (yes/no dialog).  Nine times out of ten, you’ve published to a non-trusted Flash location.  If you choose “yes”, and you’ve published to a non-trusted location, the widget will not function.  Please ensure that you’re testing the widget from a trusted flash location by either publishing to a web server, or adding the location the list of trusted sites.  Flash automatically trusts locations published to a web server.  I typically do my testing from my local web server.  The Captivate F12 web preview location is also a trusted flash location and is considered safe.

Trial:

Download Trial

Improvements Over The Captivate 5.x Version

  1. HTML5 Compatible
  2. Display PDFs or SWFs using “Web Address”.  No longer need to use an iframe.
  3. The Loading bar no longer disappears before the web page is fully loaded.
  4. A video’s sound now properly stops when navigating to the next slide.

Limitations

  1. Publishing as scalable HTML content only works for web pages (not pdfs or videos).
  2. Publishing to HTML5 does NOT guarantee that your course will display properly for all mobile devices.  You are responsible to test your content on the devices you are targeting.

Click-Jacking

Google.com, Yahoo.com and other websites have implemented a click-jacking preventative measure that disallows you to add it as an iframe (that’s what the widget does behind the scenes). You can read more about it here: http://blogs.msdn.com/b/ie/archive/2009/01/27/ie8-security-part-vii-clickjacking-defenses.aspxThis click-jacking preventative is an opt-in measure. Web publishers don’t have to use it, but Google and Yahoo have decided to. The side-effect is that you’ll get a message in Internet Explorer that the content cannot be loaded as an iframe.   If you’re testing, you may want to try CaptivateDev.com as a web address.

JavaScript Access to the iFrame

If you are publishing for swf output, you can communicate to the iframe.  The widget will dispatch a custom JS event after the iframe is fully loaded.  You can subscribe to this event using window.addEventListener() as noted below.  Here’s an example of how to tap into this event:

<script type="text/javascript">

//Subscribe to the event from the window object
window.addEventListener("IFrameLoaded", onIFrameLoaded);

function onIFrameLoaded(evt){
	//Use the evt.htmlName to get a reference to the iframe
	var ifrm = document.getElementById(evt.htmlName);

	//check to see if we have an iFrame
	if(ifrm != null){
		//from wfrm, you can access JavaScript methods and props in the iframe
		var wfrm = ifrm.contentWindow;

		//Comment these lines out (for demo only)
		alert('InnerHTML: ' + wfrm.document.body.innerHTML);
		alert('htmlName: ' + evt.htmlName + ',  captivateName: ' + evt.captivateName);
	}else{
		alert('Error: iframe is null!');
	}

	//inspect the captivateName to determine which iFrame/Wep Page Widget triggered the event.
	//This is useful if you have more than one Web Page Widget in your project.
	//The captivateName is the "Item Name" in Captivate.

	switch(evt.captivateName.toString()){
		case "Widget_1":
			alert("This was fired by Widget_1!");
			//do work here...
			break;
		case "Widget_2":
			alert("This was fired by Widget_2");
			//do work here...
			break;
		default :
			alert("iFrameLoaded Event Fired from " + evt.captivateName);
	}
}

</script>

As you can see, there’s a custom event object that gives you some important info regarding the iFrame: 1. htmlName = name of the iframe element. ( lets you get the iframe object by document.getElementById() func) 2. captivateName = The Item Name of the web page widget inside of captivate. (So you can distinguish different web page widgets in a project and act accordingly using switch/case).

Change Log

Version 6.0 – Initial Release

Version 6.1 (April 4th, 2013) – Now works with Captivate 6.1.0.319.

  • Pingback: Keypoint Learning Blog - Enhance Captivate 6 with the Web Page Widget

  • http://www.formlogix.com/FormsOnTheWeb/Contact-Forms-On-The-Web.htm contact forms on the web

    That will be interesting to know about PDF files is quite easy to work on it. Now I tried this coding , If any confusion I got then I will surely concern with you.

  • Jeanette

    HI,
    Does this widget require Flash? I am using the trial version and running demo from the index.htm (intend to use on iPad). The webpage opens, I can click around and it works fine. However, when I click play, it continues and then hangs – it just sits there and I have no way of contining (play button only has pause option). I have also tried adding a button to “Go to next slide”, but again – it continues, then hangs and the button dissappears.

    • http://twitter.com/CaptivatePro CaptivateDev.com

      @Jeanette: The widget does not require flash. There is a setting in the widget you can check to pause the project. Make sure you are not double pausing by having a button on the slide as well.

  • JaimieSomers

    Does this allow you to insert the widget into the project more than once?

    • JimLeichliter

      Yes… you can have multiple widgets in a project. Download the trial and see for yourself.

  • partlysunny

    Just purchased. Getting “Not a valid widget” error. Cap6, WinXP. Suggestions?

    • partlysunny

      Additional background: We were successfully using the widget until we deleted an instance of the widget from a slide. Following that deletion, the error occurs, even after closing the project, restarting Cap6, and inserting other built-in widgets. The issue is confined to the Web Object widget.

      • carsan68

        Similar error. I have been working successfully with this widget (trialed and purchased version) and now nothing. Always Getting “Not a valid widget” error even after closing the project, restarting Cap6, and inserting other built-in widgets.
        Cap6, Mac Os 10.8.2
        Please help, I need to use this widget.

        • http://twitter.com/CaptivatePro CaptivateDev.com

          This is a known issue with Captivate that was fixed in 6.0.1.240. Please upgrade using the latest patch by going to “Help” then “Updates” in Adobe Captivate.

          • carsan68

            The error continues to occur. I tried to update the version (“Help” then “Updates” in Adobe Captivate). According to Adobe Captivate update manager, the program is updated (version 6.0.0.199) I have a subscription license.

            Please help.

            Sorry for my bad English

          • carsan68

            It seems that the Mac patch is not yet available. When will it be?

          • http://twitter.com/CaptivatePro CaptivateDev.com

            That’s up to Adobe… hopefully soon.

  • partlysunny

    Widget working fine, but any objects placed well outside the boundary of the widget (e.g. buttons) are not visible but they can be clicked on. I thought the widget would only permanently hide objects using the same screen real estate as the widget. Btw, wmode is already set to “opaque”. Suggestions?

    • http://twitter.com/CaptivatePro CaptivateDev.com

      @223c8329d4ae0a40012867f97a749f43:disqus : Can you either send over a sample or post a sample that I can see? Not sure what you mean by hiding objects outside the bounds of the widget. The widget is an iframe that sits on top of the web page below, so any items underneath it will not be visible. Other surrounding items should be visible. If they are not, that sounds like a Captivate issue and not a widget issue.

  • paul

    Hi,

    I’m hoping to use this widget to bring a published Articulate Engage 09 interaction into a Captivate slide. The Cp 6 accordion interaction widget unfortunately doesn’t allow separate sound files to be associated with each level in the interaction, whereas the Articulate option does.

    I’ve downloaded the trial for this widget, but so far haven’t had any luck…it just sits on the “Loading” message. I know that Cp is AS3 and Articulate is AS2, but since this is pulling the interaction from an online server, I don’t think that will make any difference.

    Short and sweet: Can this widget help me to achieve what I want to do?

    • paul

      Scratch that. I was running the published Cp6 file from the wrong location. Once on an online server (a trusted flash location), it worked fine. So, it looks like you can use this widget to integrate an Articulate Engage interaction into Cp6 despite the AS2 / AS3 differences. Thanks!

  • Kat Gale

    I’m having a problem with the browser window when I use the widget.

    Slide and Widget (in my case a YouTube video) load just fine. However, when I page forward the entire browser window turns black. It usually pops back but If I page forward really quickly (perhaps before everything is loaded?) It stays black.

    I have altered the standard.htm file as directed.

    The “Live Demo – SWF” on this page does the same thing.

    Perhaps my browser version? Explorer 9, Version:9.0.8112.16421 – Update version 9.0.9

    I love this widget – It has solved a lot of problems for me. But… everytime someone takes the course they report that it’s broken.

    Thanks,

    Kat

    • Kat Gale

      Ok… this is definately browser related because it works fine in Chrome. All of our software is developed for IE so our training has to also.

      • Kat Gale

        Now I’m not sure what is happening… it is now working on my published project (but still not working for me on your sample). Since it’s working for me… I’d say move on to something else. Thanks

        • http://twitter.com/CaptivatePro CaptivateDev.com

          Kat Gale: Hard to say what’s happening, but I’m glad you were able to resolve the issue.

  • LisaB

    Hi Jim,

    Thanks for making this widget.I am using Captivate 6.0 32 bit version app. I was hoping you could help me b/c I am having some difficulties getting the widget to work properly. I followed your instructions regarding creating a new template (although, I had three different directories (Default, Custom, SendtrackingDataatEnd). I created a new directory called widget and replaced the Default.htm template w/ mine containing the wmode setting. However, I still can’t seem to get a web page to load w/in a slide. It simply shows the “loading” graphic. I am viewing/publishing from a “trusted” flash location but nothing works. I tried viewing in F12 and publishing and reading in Chrome but to no avail. Could you please let me know what else I might try?

    Thanks in advance. Lisa

    • http://twitter.com/CaptivatePro CaptivateDev.com

      @ LisaB: Depending on your publishing method, you’ll need to modify the corresponding template. Captivate will not see the new “widget” directory you’ve created so you need to modify the template that corresponds to your publishing method directly. If you need help with this, you can reach me at Jim AT Captivate Dev dot com.

    • http://twitter.com/CaptivatePro CaptivateDev.com

      @ LisaB: Have you tried running it from a true web server? Sounds like your Flash Global security settings may not be set correctly.

  • MarkM

    Hi Jim. I’ve enjoyed many of your other widgets but I can’t seem to get anywhere with this one. First, there is no .swf file in the trial download. Am I missing something here? I have tried the sample .cptx file with not luck. I only get the “loading” message and never see the website as in the live demo. I have followed the instructions and read the other posts below. Any suggestions on what else to try? Thank you very much.

  • Rita

    Please advise. After following the directions to change the so.addParam(“wmode”, “@WMODEVALUE”) value to opaque and paste the file into the 1_2 folder, Captivate does not show it as an option in Quiz > Quiz preferences. My file path is Adobe Captivate > 6×64 > Templates > Publish > SCORM > then either Default or Custom > 1_2. I posted the .htm file in both places but no luck. I just get the loading screen when I try to view using F12. I am trying to embed a Survey Monkey survey. Thanks!

  • http://twitter.com/CaptivatePro CaptivateDev.com

    @ Rita: For SCORM content, it’s a bit different. Instead of modifying the .htm file, you’ll need to modify the SCORM_utilities.js file on line 8. That file can be located here:
    …AdobeAdobe Captivate 6 x64TemplatesPublishSCORMDefaultjs

  • Sergio Wong Chung

    Hi, we want to buy the software. We tried the trial and our developers changed the .htm as described. Still it keeps hanging on loading, in each kind of browser.
    Is there a solution for this?

    • http://twitter.com/CaptivatePro CaptivateDev.com

      @ Sergio: Make sure the the wmode is set to opaque in the published output or in your .htm template located in the Adobe Captivate installation folder. If you are publishing to SCORM, then you’ll need to make that modification in the SCORM_utilities.js file on line 8. Test your output on a true web server, or adjust your flash security settings to run content from a local location.

      • Hamza

        how to adjust flash security settings to run content from a local location plz ?

      • Sergio Wong Chung

        It doesn’t work in preview unfortunately, only published, but of course that’s the final purpose. If it could work in preview, would be great.
        I want to buy, but for some day’s the payment is in test mode, can i get in some other (paypal?) way?

        • JimLeichliter

          @ Sergio: Sounds like you’re Flash settings need to be updated:

          http://captivatedev.com/2013/01/17/flash-security-and-adobe-captivate-widgets-interactions/

          The payment gateway is being updated. The gateway works, but the downloads feature does not. I’m in the process of working through some issues with my host provider. We’ve had to move the entire site to a new server and hope to be back online by Monday. If we cannot get the downloads issue resolved, I’ll cut the orders feature on and just email the widget files to our customers. Stay tuned…

  • Jahon

    We have a basic web page that is link through the relative site path option and every time it loads the scroll bar is not on the right and the bottom of the web page is not contained within the bounding box of the widget. It bypasses the bottom bounding box and runs over our other content. Is there a fix to this or is it something we are doing?

    • JimLeichliter

      @Jahon: Take a look at the css for the web page you’re trying to insert. Most likely, it’s interfering with the iframe settings. The web page widget is an iframe sitting on top of your swf content.

  • Kris

    Could i use this plugin to load CreatJS exported content from Flash?

    • JimLeichliter

      @Kris: Yes, you can use the web page widget to load CreateJS content exported from Flash. You can download the trial and see for yourself.

  • Charles

    Purchased this widget, followed the instructions to a t and still no luck when I view on a server. I played with http and relative pathes…NO LUCK. when I point to an HTML file on a server directly, and prview locally, it works. When I upload all published files on a server I STIL CANNOT view my web page. Help?

  • Chuck

    I’m using this widget (that I purchased and is awesome!). I have a couple of slides of content in my captivate movie that use this widget (legacyswf files). I have a problem with the TOC overlay – when I select it, when on a page with the widget, the swf content in my HTML page covers the dropdown menu I’ve tried setting wmode to opaque in my cp index.htm file, as well as in my spurce .htm file. Anything I can do with Javascript that can fix this problem? Or anything else I should be looking at? Please advise. Thanks in advance.

    • Chuck

      I meant source file – not spruce!

    • http://twitter.com/CaptivatePro CaptivateDev.com

      @Chuck: The web page widget uses an iframe that sits on top of the Cp swf. Unfortunately, you can’t change the layering, however, you could reposition the widget on the Cp canvas so that it won’t cover the dropdown menu.

      • Chuck

        Thanks for your response. the dropdown menu I’m referring to is the slide out Table of Contents. I will try repositioning the iframe layer to be at the back.

        • http://twitter.com/CaptivatePro CaptivateDev.com

          @1a4ab378c09e9b0c4a625475ec868c4a:disqus : I see what you mean now. If you have a fly-out TOC, then the web page widget could potentially block view of the TOC depending where you place it. Statically placing the TOC to the right or left may be a better option.

  • duaa

    can you please check this link http://demo1.nusrv.com/Test/vid3/index_SCORM.html the video is not working here can you help me with this i’m using an html file to load the video not a direct link in the widget.

    another problem is the widget background color it uses white color how can i change it to transparent ??

    • http://twitter.com/CaptivatePro CaptivateDev.com

      @b4a17058c9aa28404cf92561774b54df:disqus : Please send over your .cptx file and associated .html that has the video in it. I can take a look on my end. You can send it to Jim AT Captivate Dev dot com

  • Patti Bryant

    Good morning!

    I have created a survey at SurveyMonkey.com. I inserted the web page widget into a Captivate slide and used the web address option with the URL to the survey. It looks great! However, since we publish using “scalable HTML content”, if the window is resized, the web page widget covers the buttons of the course. I have posted an image that shows what this looks like. This doesn’t happen with any other objects in the course (images, videos, etc.). Any suggestions on how to resolve this?

    Thanks in advance!

    Keepin’ the joy,
    Patti

    • http://twitter.com/CaptivatePro CaptivateDev.com

      The only way around that is to turn off scalable HTML content. Once you scale a project, the widget has no reference point to place the iframe (web page) over top of the Cp swf.

      • Patti Bryant

        Thanks for the quick response – I appreciate you!

  • Krishna

    Hi,

    I have downloaded Web page widget and trying to do a simple POC like loading captivatedev.com. After configuring URL and I published the file and hosted on a web server. When I try to launch it nothing happens, I do not see any loading image or any error. It is just a blank page. Can you please help me out resolve this issue. Even the sample app that is available on this page also does not work, not sure if I am missing some thing? Captivate version I am using is 6.1.0.319

    • Jim Leichliter

      Krishna : Make sure you’re http web address ends in .htm or .html. Also, please follow the guidelines on how to test your widget here:
      http://captivatedev.com/2013/01/17/flash-security-and-adobe-captivate-widgets-interactions/

      • Krishna

        Thanks much Jim for fast response… Actually it was working with captivate 6.0. Couple of days back I upgraded to Captivate 6.1.0. Because of some other issues captivate help desk suggested me to upgrade to this new version and issues I had were resolved. But with new version all my old sample captivate projects I have created using web page widget are not working. I am still using trial version of the web page widget though. Any suggestions how I can further debug this issue?
        Thanks,
        Krishna

  • Alan

    I purchased this widget, but can’t seem to get it to work on the iPhone. Works fine in IE and Firefox on the PC. On the iPhone, however, I see a grey loading screen even though the Show “Loading…” message is unchecked. I’ve tried with all three settings and the result is the same.

    Perhaps unrelated, but in the console log unable to post message http://undefined Recipient has origin http:// .

    The sample on this website works. I’m using Captivate 6.0.1.240. I also see a similar problem when I republish your sample. Ideas?

  • Will

    I have downloaded the trial and exported my project as SWF. The webpage loads in IE but not in Chrome. I have changed the flash security setting but still no luck in Chrome only a spinning bar. Am I missing something?

    • http://twitter.com/CaptivatePro CaptivateDev.com

      @Will: Make sure you’re following the guidelines in this article:

      http://captivatedev.com/2013/01/17/flash-security-and-adobe-captivate-widgets-interactions/

      Also, Make sure that the web address you’re using to test the widget ends in .htm and not .swf.

      • Will

        I have added multiple “Trusted sites” and still nothing within Chrome but works perfectly in IE. Is there any other settings within Chrome that must be changed?

        • http://twitter.com/CaptivatePro CaptivateDev.com

          @Will: Test it on a real web server and see if that changes things. If it works, then you know your trusted sites are not set up correctly.

        • http://twitter.com/CaptivatePro CaptivateDev.com

          @5d0360e6aaae1463982cd1550ec3d3cc:disqus Also make sure that wmode is set properly as described in this blog post in red.

  • Lucy

    I want to insert a quizlet page into my captivate project. I have tried to insert it as a webpage and as a HTML string. It shows the page but I am not able to click on the arrow to go to the next flashcard. Is there a way to do it?

    • http://twitter.com/CaptivatePro CaptivateDev.com

      @Lucy: The best way to tackle that would be to create a separate .html page and insert / embed your quizlet into that. Then display that .html page inside of the widget.

      • Lucy

        Thanks for the quick reply. I did that but still no luck when I use my iPad (published as HTML5). On my computer everything works fine, on the iPad a grey box (shade) appears when I try to touch the screen (to flip the cards, click button for sound). Is there anything I can do?

        • http://twitter.com/CaptivatePro CaptivateDev.com

          @Lucy: Does the quizlet work on your iPad outside of Captivate?

          • Lucy

            yes, I tested the quizlet page and the HTML page I create with the quiz let flashcards and both work.

          • http://twitter.com/CaptivatePro CaptivateDev.com

            @Lucy: When you published the quizlet, I’m sure it had associated javascript and css files that went along with it. When you use the web page widget, it will show the web page in an iframe, which can change the context of the where the quizlet is looking for those associated files. Make sure those files are also in the published output location. If you are still having issues, you can send the .cptx project to Jim AT CaptivateDev dot com

  • Allison

    Do you know of any reason why the scrollbar wouldn’t appear, even though the webpage doesn’t fit inside the frame and the “Show scrollbars” option is set to “Yes”? (I’ve also tried “Auto”, but still no scrollbar.)

    • http://twitter.com/CaptivatePro CaptivateDev.com

      @98aa886b1bf0f9b124b9d3ce0ddff394:disqus It could be that the web page you are trying to display overrides that feature through JavaScript.

      • Allison

        That is a possibility, but I was actually able to get a scrollbar in a previous iteration (but I haven’t been able to replicate it).