web/res/metadataplayer/test/hook.html
author Raphael Velt <raph.velt@gmail.com>
Wed, 26 Oct 2011 18:29:46 +0200
changeset 338 60dff8a71024
parent 133 9578d3ddce17
permissions -rwxr-xr-x
Added alternate configuration

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="ltr" xml:lang="fr" 
xmlns="http://www.w3.org/1999/xhtml" lang="fr">

<head>

</head>

<body>
<script type="text/javascript" src="hook.js"></script> 
<script  type="text/javascript">	
Hook.register(
  'quit',
  function ( args ) {
    alert( 'Bye!' );
    return true;
  }
);

Hook.register(
  'test',
  function ( args ) {
    alert( 'ici!' );
    return true;
  }
);

Hook.call( 'quit', [ 'All Done' ] );
Hook.call( 'test', [ 'All Done' ] );

</script>


</body>
</html>