HTML5 Tutorials
The element.dataset API
A while back I showed you the awesome classList API, which allows simple addition, removal, and toggling of CSS classes without the need for parsing the className. Another simple API available in FireFox Aurora Firefox 6, at time of print and Chrome 8 is the...
window.postMessage Tip: Child-To-Parent Communication
I wrote a super epic post a few months back about the
window.postMessage
API that's sweeping the nation.window.postMessage
allows you to send messages not only across frames (regular frame or iframe) but also across domains. My post showed interaction from parent to child and back...HTML5 Placeholder Styling with CSS
Last week I showed you how you could style selected text with CSS. I've searched for more interesting CSS style properties and found another:
INPUT
placeholder styling. Let me show you how to style placeholder text withinINPUT
elements with some unique CSS code. The CSS Firefox...WebSocket Update
A few weeks back I published a post about the awesome new technology that is WebSockets and a great WebSocket wrapper called Socket.IO. The HTML5 WebSocket API provides socket connection support for faster messaging between client and server. Consider WebSocket an optimized AJAX solution. SocketIO...
WebSocket and Socket.IO
My favorite web technology is quickly becoming the WebSocket API. WebSocket provides a welcomed alternative to the AJAX technologies we've been making use of over the past few years. This new API provides a method to push messages from client to server efficiently...
Supporting the onMessage Event in MooTools
Yesterday I threw some window.postMessage knowledge right in your face. The cross frame/window/domain technology that is window.postMessage is really interesting and as IE6 and IE7 fade away, window.postMessage will gain more momentum. In looking to listen to onMessage events with MooTools, I noticed that message...
HTML5’s window.postMessage API
One of the little known HTML5 APIs is the window.postMessage API.
window.postMessage
allows for sending data messages between two windows/frames across domains. Essentially window.postMessage acts as cross-domain AJAX without the server shims. Let's take a look at howwindow.postMessage
works and how you...HTML5’s async Script Attribute
One of the big reasons I'me excited about HMTL5 is that features are being implemented that have been long overdue. We've been using placeholders forever but we've needed to use JavaScript to do it. We've been making entire blocks clickable like links but we've needed...
HTML5’s “email” and “url” Input Types
I've already covered some subtle HTML5 improvements like placeholder, prefetching, and web storage. Today I want to introduce a few new INPUT element types: email and url. Let's take a very basic look at these new INPUT types and discuss their advantages. The Syntax The...
HTML5’s placeholder Attribute
HTML5 has introduced many features to the browser; some HTML-based, some in the form of JavaScript APIs, but all of them useful. One of my favorites if the introduction of the
placeholder
attribute to INPUT elements. Theplaceholder
attribute shows text in a field until the...