Login   Register  
Icontem

File: examples_and_documents/singleModuleWithListener.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/singleModuleWithListener.html  >  Download  
File: examples_and_documents/singleModuleWithListener.html
Role: Example script
Content type: text/plain
Description: Example usage single module add listeners
Class: Hydra.js
Modular event action handler
Author: By
Last change:
Date: 2011-07-21 13:07
Size: 627 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/sampleModuleWithListener.js"></script>
		<script type="text/javascript">
			$(document).ready(function () {
				$("#launchModule").click(function () {
					Hydra.module.start("sampleModuleWithListener");
					return false;
				});
			});
		</script>
	</head>
	<body>
		<h1>Hydra.js - Single Module with listener -</h1>
		<p>
			<a href='#' id='launchModule'>Start Module</a>
		</p>
	</body>
</html>