Tiffany B. Brown

a mish-mosh of stuff

Posts in: Web Development & Programming

Looping video in browsers that don’t yet support the loop attribute
To date, Firefox does not yet support the loop attribute of the <video> element. This snippet is a simple work-around. Once the video’s ended event is fired, it calls the play method. For more, consult the media events section of the HTML5 specification. [4 Oct 2011]
XHR2 + CORS Slides, some AppCache-fu, OpenWebCamp, and Opera News
For the June meeting of the HTML5 & CSS3 LA User Group, I spoke about XMLHttpRequest, Level 2 and Cross-Origin Resource Sharing headers. It’s always tough to present code. That goes double when you are sleep deprived, yet caffeinated and tongue-tied. In any case, the slides — which is really just one really long, really [...] [30 Jun 2011]
Check me out: Modern debugging tips and tricks
Yesterday my first piece for A List Apart went live: Modern Debugging Tips and Tricks. It’s an overview of using the JavaScript console that’s now available in every modern browser, and doing remote debugging using Opera Dragonfly and JS Console. [8 Jun 2011]
On URL design
Namespaces can be a great way to build up a pragmatic URL structure that’s easy to remember with continued usage. What do I mean by a namespace? I mean a portion of a URL that dictates unique content. One of Kyle Neath’s tips from his post URL design. This. URLs make your site more usable, [...] [6 Jan 2011]
Why ActionScript 3.0 should be your first programming language
Last week, a Twitter friend asked about learning programming and where to start. I suggested ActionScript 3.0, but 140 characters isn’t enough to explain why. That’s what blog posts are for. ActionScript sounds like a weird choice, right? It’s client-side, not server-side. You can’t connect to a database or create files on the fly without [...] [23 Aug 2010]
The HTML5 video progress event: Redux
In my first post on HTML5 video and its progress event, I wrote: Only Firefox provides a means to calculate the amount of the video that has been loaded. The progress event object includes total and loaded properties that reflect the total size of the video file, and the amount the browser has retrieved from [...] [6 Jul 2010]
JavaScript tip: Use a for-loop to reveal properties and methods
I’ve been tinkering with the HTML5 video element quite a bit lately. However, it’s not the best-documented thing in the world. There are very useful properties in the video element’s events that aren’t so clearly explained in the spec. Developing a media player means you have to uncover these properties using a little bit of [...] [29 Jun 2010]
Increment and decrement, prefix and postfix
I created this example of the increment (++) and decrement (–) operators in action because I needed to see how they work in combination. I tested this example in Firefox, Safari, and later versions of Internet Explorer, but it probably works in Opera and Chrome as well. [18 Jun 2010]
Links for 2010-05-17
Two web development links for your enjoyment. FormData interface coming to Firefox An overview of the FormData object of XMLHttpRequest, and how you will soon be able to use it in Firefox. From Hacks.Mozilla.Org. Dealing With the Dreaded ‘Flash of Unstyled Text‘ Tips for mitigating, even eliminating the appearance of unstyled text when using @font-face. [...] [17 May 2010]
To password mask or not password mask?
That is the question Jakob Nielsen sparked with last summer’s column: Stop Password Masking. In this week’s A List Apart, Lyle Mullican discusses The Problem with Passwords, and writes: However, making such a sweeping change to a fundamental user interaction could present serious problems. Consider some contexts in which a password might need to be [...] [9 Feb 2010]