Skip to content

Instantly share code, notes, and snippets.

@tmaslen
Created July 13, 2009 13:49
Show Gist options
  • Save tmaslen/146113 to your computer and use it in GitHub Desktop.
Save tmaslen/146113 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">
<head profile="http://dublincore.org/documents/dcq-html/">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="http://www.bbc.co.uk/glow/gloader.js"></script>
<script type="text/javascript">
gloader.load( [ 'glow', '1.5', 'glow.dom' ],
{
async: true,
onLoad: function( glow ) {
var html = '<div><object class="mtk-media-playlist" src="http://www.bbc.co.uk/englandcms/applications/somerset/glastonbury/xml/noel_gallagher_on_jayz.xml"></object></div>';
var myNodeList = glow.dom.create( html );
var nodes = myNodeList.get( '.mtk-media-playlist' );
alert( 'SRC: ' + nodes.attr('src') );
}
}
);
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment