web/rsln-opendata/res/metadataplayer/test/hook.html
author Samuel Huron <samuel.huron@centrepompidou.fr>
Tue, 15 Mar 2011 13:46:46 +0100
changeset 66 8a382087127f
permissions -rw-r--r--
rsln-opendata

<!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>