JavaScript

iframes and cross-domain security

I’m working on an HTML-based course interface that serves up content in an iframe. I had everything working great until I needed to move the content to one domain while hosting the interface on a different domain (kind of a simplified home-brewed CMS approach). BAM! Cross-domain security issues. Course interface dead in the water.

Introducing PDFObject

I recently worked on an e-learning course that required embedding some PDFs into an HTML file. PDF embedding piqued my curiosity, and has become something of a pet project. I decided it would be nice to have a JavaScript script that could dynamically embed PDFs as easily as SWFObject allows SWF embedding. I managed to whip up a script, and decided to name it PDFObject. (I know, I know… what a creative name!) As you may have inferred from the name, the concept and functionality is pretty similar to SWFObject.

ECMAScript vs JavaScript vs ActionScript: Do you know the difference?

If you’re trying to use SCORM in your e-learning, you’ve undoubtedly heard of JavaScript and ActionScript. But do you know the different between ECMAScript, JavaScript, and ActionScript?

Alex Russell has provided definitions for many of the ECMAScript-related names you might be reading about these days, including ECMAScript (3, 3.1, 4), ActionScript 3, Harmony, and JavaScript 2.

Very helpful!

Via Ajaxian.

More SWFObject 2.0 examples

I just posted a few more SWFObject 2.0 examples: Plain-vanilla SWF embedding using SWFObject 2.0 Using SWFObject 2.0 with ExternalInterface Determining whether a SWF was successfully embedded (returning a boolean in JavaScript) Using SWFObject with an ‘onclick’ event Update: The SWFObject examples list is now located at http://learnswfobject.com

SWFObject examples have been updated

Just an FYI: The SWFObject section of my site has been updated with SWFObject 2.0 examples, including: Using SWFObject with ajax (xmlhttprequest) Using ExpressInstall Toggling a SWF’s visibility Passing querystrings to a SWF using PHP Setting the z-index and wmode (allowing page elements to overlap the Flash SWF) SWFObject has two publishing options: static publishing and dynamic publishing. I’m happy to report that every SWFObject 2.0 example on my site has both a static and a dynamic example. I also included instructions for most of the examples. Hopefully people will find them useful! 🙂 The SWFObject section is located at …

SWFObject examples have been updated Read More »

SCORM API Wrapper updated to auto-handle exit and status

The SCORM API wrapper (v1.1.7) has been updated to automatically set the initial course status and the exit status.

The point of my SCORM API wrapper is to make working with SCORM easier. These two new functions are intended to ensure you follow best practices with your SCORM code while reducing the amount of tedious code you will need to write for your course.

Scroll to Top