Searching for events
- Aug 08 2011
JavaScript: Firefox Nightly introduces DOM Joystick Events
Late last week, excitement buzzed here at Bocoup, when David Humphrey of Mozilla dropped us a line with links to a Firefox nightly build that had added rudimentary support for a set of DOM Joystick events. Several hours later we, along with Jason Orendorff and TedMielczarek of Mozilla, put together a couple of prototype experiments […]
Continue ReadingJavaScript: Firefox Nightly introduces DOM Joystick Events - Jun 01 2011
JavaScript: EventSource is Long Polling
UPDATE: With some serious modification to the server end point, Luke Morton was able to achieve a single open event that fires message events as responses are received via a “push” from the server: https://gist.github.com/1002722. By modifying the original example’s PHP end point, Luke’s approach was to omit the closing PHP tag (ensures that no […]
Continue ReadingJavaScript: EventSource is Long Polling- Tagged in:
- performance,
- tools and workflow
- May 30 2011
JavaScript: Firefox/Aurora 6 and EventSource API
I originally wrote this as a comment on Mozilla’s “Aurora 6 Is Here” article – but I’m impatient and couldn’t wait for the comment to be moderated. Also, I haven’t posted in a while and figured Bob the Rooster would appreciate it. Glad to see support for the EventSource API has made it to Firefox. […]
Continue ReadingJavaScript: Firefox/Aurora 6 and EventSource API- Tagged in:
- performance,
- tools and workflow
- Dec 20 2010
Using dataTransfer and other HTML5 event properties with jQuery Events
Update: I put this utility up at datauri.com for convenience. Update: The jQuery.event.props event property list has since been documented in the Event Object documentation. This past weekend, I made a handy utility for converting files to data URLs. This utility is part of a larger tool that we are developing for a client. I […]
Continue ReadingUsing dataTransfer and other HTML5 event properties with jQuery Events - Oct 19 2010
JavaScript: EventSource Support Updated in Opera 10.70
The Official Opera Blog has announced that Opera 10.70 will feature a reimplementation of the EventSource API. I say “reimplementation” because Opera was actually the first modern browser to add support for Server Sent Events back in 2006. The implementation was awkward and required a DOM element. Last week, Opera Core Concerns posted an update […]
Continue ReadingJavaScript: EventSource Support Updated in Opera 10.70 - Aug 26 2010
JavaScript: Creating an EventSource within a Worker
After spending the day finishing out cross-browser EventSource support in the form of jQuery.EventSource.js, then wrapping up with a commit of 55 new unit tests, I finally left the Bocoup Loft for the day around 8 o’clock… But as most developers know, no matter how hard you try, you just can’t leave this kind of […]
Continue ReadingJavaScript: Creating an EventSource within a Worker - Aug 25 2010
JavaScript: YakYakFace.com uses jQuery.EventSource
For those of you curious about what can be created or where to use the new JavaScript EventSource API (also known as “Server Sent Events” ) – I’ve developed a very basic chat application that uses jQuery.EventSource.js to provide a simple API to native EventSource where available (and a fallback when not) and Twitter @anywhere […]
Continue ReadingJavaScript: YakYakFace.com uses jQuery.EventSource - Jun 07 2010
JavaScript EventSource: Now available in Firefox!
…Not natively… but this will work in the meantime: Git it here firefox-event-source.js ;(function (w) { if ( !w[‘EventSource’] ) { // parseUri 1.2.2 // (c) Steven Levithan <stevenlevithan.com> // MIT License var parseUri = function(str) { var o = { key: [‘source’,’protocol’,’authority’,’userInfo’,’user’,’password’,’host’,’port’,’relative’,’path’,’directory’,’file’,’query’,’anchor’], q: { name: ‘queryKey’, parser: /(?:^|&)([^&=]*)=?([^&]*)/g }, parser: { strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/ } […]
Continue ReadingJavaScript EventSource: Now available in Firefox!- Tagged in:
- performance,
- tools and workflow
- May 26 2010
Chrome 6: Server Push Events with new EventSource()
This is mighty awesome. I’ve put together some test demos, to run them you’ll first need to get this Chromium build: 47357 WIN32 47357 MAC 47357 32-Bit Linux 47357 32-Bit Linux Then download these: https://gist.github.com/415116 client.html <script src=”event-source.js”></script>; event-source.js document.addEventListener(‘DOMContentLoaded’, function () { var eventSrc = new EventSource(‘events.php’); eventSrc.addEventListener(‘open’, function (event) { console.log(event.type); }); eventSrc.addEventListener(‘message’, […]
Continue ReadingChrome 6: Server Push Events with new EventSource()- Tagged in:
- performance,
- tools and workflow
- Apr 19 2010
Publish/Subscribe with jQuery Custom Events
The Publish Subscribe or pub/sub pattern is used to logically decouple object(s) that generate an event, and object(s) that act on it. It is a useful pattern for object oriented development in general and especially useful when developing asynchronous Javascript applications. This post explores its implementation in jQuery. The Dojo javascript framework provides an explicit […]
Continue ReadingPublish/Subscribe with jQuery Custom Events- Tagged in:
- performance,
- tools and workflow