web/rsln-opendata/res/metadataplayer/test/hook.html
changeset 66 8a382087127f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/rsln-opendata/res/metadataplayer/test/hook.html	Tue Mar 15 13:46:46 2011 +0100
@@ -0,0 +1,35 @@
+<!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>
\ No newline at end of file