pipwerks

Using the object element to dynamically embed Flash SWFs in Internet Explorer

This is a journey into the madness of Internet Explorer. Yes, there is a happy ending. Jump to the end of the post if you just want the solution and don’t care about how we got there. The Scenario You want to embed a Flash SWF into your HTML

Sniffing Internet Explorer via JavaScript

I’ve been reviewing bug submissions for the SWFObject project and was reminded of a big problem with SWFObject 2.2: the JavaScript technique it uses for detecting Internet Explorer does not work in Internet Explorer 9. SWFObject 2.2 currently uses an IE detection technique proposed by Andrea Giammarchi

PDFObject Updated, Moved to GitHub

PDFObject is a JavaScript utility I created in 2008 to embed PDFs in HTML documents. It was modeled on SWFObject. Three years have passed since PDFObject 1.0 was released, and the browser landscape has changed dramatically. I figured it’s time to dust off PDFObject and see if it

IFrames and cross-domain security, part 3

In 2008 I posted a quick writeup on how I dealt with cross-domain security issues for some of my e-learning courseware. Since then, I’ve had a lot of people contact me with various questions and requests for a working example. Tonight I decided to revisit the topic and whip

Comparing and cloning objects in JavaScript

Here’s a handy way to determine if two JavaScript objects are identical without using a framework like jQuery or MooTools: var compare_objects = function (obj1, obj2) { var parameter_name; var compare = function (objA, objB, param) { var param_objA = objA[param], param_objB = typeof objB[param] === "undefined" ? false

pipwerks © 2026