Category: XML

Enable the Debug Menu in Safari

I find the new debugging tools in Safari almost as useful as Firebug. There’s a Web Inspector that lets you see exactly how the HTML is formed, a Javascript console that lets you see errors and debugging messages written into the code and much more.

But to use them you must enable the Debug menu in Safari. Open Safari preferences in the Safari Menu, click Advanced, and select Show Develop menu in menu bar.

Continue reading

The Processing Instruction Target Matching “[xX][mM][lL]” is Not Allowed

When running Java or other types of applications which use an XML file as part of the input, you may see this error: The Processing Instruction Target Matching “[xX][mM][lL]” is Not Allowed.

Often the cause is a malformed XML file, with a common problem being a blank line accidentally inserted before the required first line of the xml:

[ A blank line here will cause the error ]
<?xml version-"1.0"?>
Continue reading

Multiple JW players on a page, revised for JW Player 4.7

The JW Player is a very popular open-source media player which not only supports many video, audio and image formats, but has many scriptable behaviors. Here we’ll make use of the JavaScript API to generate as many players as you want on a page. The generated players all have separate event listeners to keep them from interfering with each other. Events or actions executed in one player do not affect others.

Article Outline

  • Add placeholders for each player
  • Playlists
  • Call the init function
  • This is a new version of that was compatible with an earlier version of the JW Player. This one has been updated to work with JW Player 4.7.761 and later.

  • Continue reading

    JW FLV player with Javascript playlist

    Screen shot 2009-12-17 at 1.06.07 PM.jpg

    This is an example of how to create a javascript-based Playlist selector for a JW FLV player. The playlist selector menu has 3 sections that toggle open and closed when you click on them. This allows the user to switch playlists, choosing from various topics.

    The source code has not been cleaned up, but you should be able to get an idea of how to set this up from it.

    Continue reading

    Troubleshooting Jeroen Wijering’s FLV player in your HTML

    There are some errors that come up time and time again when working with Jeroen Wijering’s Flash Video Player. Here’s how to troubleshoot them. I’ll keep adding to the list as time permits. Click the images to see a larger view.

    Continue reading

    New Google Gadget: The Daily Bailout

    My first attempt at a Google Gadget is now available, ready to contribute to your information overload and general level of anxiety. When loaded, “The Daily Bailout” widget shows you a random bailout from a list starting with the buyout of Countrywide Mortgages.

    Researching this little gadget has been an eye opener because of the sheer size of the numbers involved. For example, did you know that the bailouts so far this year exceed all US bailouts in history combined? Did you know that some of the banks that appeared to be bailing other banks and companies out are actually themselves in serious trouble? This list could become very long before this is over.

    In any case, you can add the gadget to your webpage by clicking this link:

    Add to iGoogle

    Continue reading