/ Published in: HTML
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<header>
<div id="title">
</div>
</header>
<section id="main">
</section>
<!-- Retreive the JavaScript files we are dependent on from a Content Delivery Network (CDN) where possible -->
<script type="text/javascript">
// Attach the "firehose" widget to the "test" div above:
$("#test").firehose();
// Without creating a new firehose widget, we can make another element (the "test2" div)
// subscribe directly to the other element's observable by accessing it through the "options" property:
$("#test").firehose("option", "firehose").Subscribe(function (eventData) {
$("#test2").text(eventData.offsetX + "," + eventData.offsetY);
});
</script>
</body>
</html>
URL: http://www.sage.co.uk/devblog
Comments
 Subscribe to comments
                    Subscribe to comments
                
                