Login   Register  
Icontem

File: examples_and_documents/twoModulesOneListenOtherNotify.html

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tomas Corral  >  Hydra.js  >  examples_and_documents/twoModulesOneListenOtherNotify.html  >  Download  
File: examples_and_documents/twoModulesOneListenOtherNotify.html
Role: Example script
Content type: text/plain
Description: Example usage two modules one listen other notify
Class: Hydra.js
Modular event action handler
Author: By
Last change:
Date: 2011-07-21 13:09
Size: 704 bytes
 

Contents

Class file image Download
<html>
	<head>
		<script type="text/javascript" src="js/Hydra.js"></script>
		<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
		<script type="text/javascript" src="js/sampleModuleListener.js"></script>
		<script type="text/javascript" src="js/sampleModuleNotifier.js"></script>
		<script type="text/javascript">
			$(document).ready(function () {
				$("#launchModule").click(function () {
					Hydra.module.start("sampleModuleListener");
					return false;
				});
			});
		</script>
	</head>
	<body>
		<h1>Hydra.js - Two Modules - Listener and Notifier -</h1>
		<p>
			<a href='#' id='launchModule'>Start Module</a>
		</p>
	</body>
</html>