Login   Register  
Icontem

File: examples_and_documents/twoModules.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/twoModules.html  >  Download  
File: examples_and_documents/twoModules.html
Role: Example script
Content type: text/plain
Description: Example usage two modules
Class: Hydra.js
Modular event action handler
Author: By
Last change:
Date: 2011-07-21 13:08
Size: 689 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/sampleModule.js"></script>
		<script type="text/javascript" src="js/sampleModule2.js"></script>
		<script type="text/javascript">
			$(document).ready(function () {
				$("#launchModule").click(function () {
					Hydra.module.start("single");
					Hydra.module.start("single2");
					return false;
				});
			});
		</script>
	</head>
	<body>
		<h1>Hydra.js - Two Modules -</h1>
		<p>
			<a href='#' id='launchModule'>Start Modules</a>
		</p>
	</body>
</html>