Getters and setters with JavaScript – code samples and demos
Not many people know it, but you can use “real” getters and setters in JavaScript if you want to.
Not many people know it, but you can use “real” getters and setters in JavaScript if you want to.
It’s been some time since the last event, but man, are we making up for it this time! Time for Geek Meet Charity June 4th 2009!
Lately I’ve been investigating newer versions of JavaScript, and what web browser support they have. And, as usual when I create something I find useful, I want to share it with the world. π
Just playing around a little, I’ve created a new command for Ubiquity.
One of the most common mistakes I see with web sites is demanding of the end user to know technology.
Let’s talk about what we should know and learn, shall we?
About a couple of weeks ago, I was approached by a Mozilla employee suggesting I talk at one of their events.
I have just released a new version of my Firefox extension Inline Code Finder and made a personal download record! π
During the fall, I put a fair amount into writing an article for the Opera Web Standards Curriculum, and now it has finally seen the light: Handling events with JavaScript!
Admit that you have always wanted to know how to develop a Firefox extension but never had the time to learn. π Here I will walk you through and at the end of the article we will have created a fully functional Firefox extension!
Most of you probably know about photo sharing at Flickr, and share and/or view your friends’ and families’ photos there. In my humble opinion, though, their set/gallery view could offer a better experience, and therefore I’ve set out to improve it with Flickr Gallery Plus!
Ever felt that you have had the need to enhance your web browser, or the functionality of some web site you frequently visit? Here I will explain how to do that.
The end of 2008 is near, and I felt it was time to summarize the passed year.
When I first coded and released Obtrusive JavaScript Checker, I had some more ideas with it, as well as some great feedback I have received and wanted to see to. The result is Inline Code Finder, which looks for inline styling as well as what the Obtrusive JavaScript Checker offered, and it comes in two versions!
This article is also available in Russian.
Today I thought I’d introduce you to timers in JavaScript and how to use scope to make your life easier.
When I review web sites, and also in my own projects with a number of different team members, I almost constantly stumble across something web developers should really refrain from: inline styling and inline JavaScript code.
It was time for me to stop being a whiny lazy developer, and instead properly learn to develop Firefox extensions. So. the result is version 0.8 of Obtrusive JavaScript Checker, as a very much improved Firefox extension.
Something which have troubled web developers for a long long time is the proprietary event handling implementation in Internet Explorer. In IE 8, this really has to go.
With the latest release of Obtrusive JavaScript Checker and its cool information and report features, I got the request to make it as a command for Ubiquity as well. So, here you go! π
When I launched Obtrusive JavaScript Checker, I immediately felt it had more potential, and I definitely had more features to add to make it even more compelling. Therefore, here comes a new release with javascript:
link support, detailed inline event information and a summary report.
In my work, part of it is analyzing both other people’s code as well as my own. Now I have created Obtrusive JavaScript Checker to help me out with that!
I guess some of you hard-core developers and keyboard shortcut lovers out there immediately took Mozilla’s Ubiquity extension for Firefox to your hearts when the first version was released in August. Now I have created a command to perform a search in my own web site with the help of Ubiquity, and naturally I want to share it with you.
When talking about JavaScript and inheritance, something that often go amiss from the discussion is the alternative of using proper namespacing instead.
After my recent posts about JavaScript, there were some people asking for more information about inheritance – intrigued by the concept myself, and also inspired by Andrea Giammarchi’s comment , I though I’d come up with some scary shit. π
One of most tricky behaviors by JavaScript interpreters is semicolon insertion.
After reading JavaScript inheritance – how and why and Explaining JavaScript scope and closures, I thought we’d combine the knowledge gained to talk about private, privileged, public and static members (properties and methods) for objects in JavaScript.
I thought I’d try to explain something which many people struggle with: JavaScript scope and closures.
Some time ago, I had lunch with a former colleague I last saw in 2000, when we were working together in a project. We got to talking, and eventually he asked me an interesting question.
Currently I’m working a fair bit with JavaScript and teaching different ways to use it, and what I want to talk to you about is if and how you use inheritance in JavaScript.
Having done an amount of cell phone research lately, I’ve had the not-so-pleasant experience of seeing the level of quality of certain cell phone vendor web sites. Therefore, I’d like to compare Nokia vs. Sony Ericsson.
As every other web developer on Earth, I initially clung on to Flickr for my photos, but recently I did a little evaluation round, and instead fell for SmugMug. Therefore, I thought it would be interesting to write down a comparison of those two services.
Version 2.7.2 of DOMAssistant has just been released, and beside from some small improvements and minor tweaks, it has two new and very interesting methods.
I’m sure there are a few Tumblr fans out there, and if you are, naturally you’ll want a Tumblr badge to present it in your own web page? π
January 25th 2007, I released something I fondly nicknamed DOMAss, which step by step evolved into the today full-fledged DOMAssistant. Today, it is time to let it go.
Ok, so some of you must think I’m slightly retarded in regards to discovering new internet services. The thing is, though, that I usually test a lot of them as soon as they surface, then wait to see if they become popular, and if yes, hops on the train as everyone else. This time around, the turn has come to FriendFeed and the FriendFeedBadge.
Some time ago I released PictureSlides, a DOMAssistant plugin to create compelling slideshows and thumbnail galleries, with a number of customizable options. Recently, I ported PictureSlides to also work with jQuery, so if you want to do something spiffy with images, I recommend you check it out!
The web is buzzing! Something which was due to come, sooner or later, has happened. Google is launching their own web browser today: Google Chrome.
After a spring filled with varying degrees of turmoil, summer is finally here. And with that, my friends, comes my break from development, blogging and any other computer-related activity.
Looking at how JavaScript has and its usage has evolved, and also taking in how most JavaScript libraries seem to try to cater for every possible need people might have, I thought it was about time to get back to the basics. To me, that is spelled dLite.
When developing applications with Adobe AIR, a vital feature is being able to push application updates to the end users. As it’s quite hard to find complete examples from Adobe, I thought I’d offer you a script how to do it.
As I’m sure you know, I have a very strong interest in JavaScript, and what better way to try and feed that, than to read a brand new book by Douglas Crockford entitled JavaScript: The Good Parts!
As most of you are aware of, me and a small group of very talented people are working on our JavaScript library of choice, DOMAssistant, because we have a strong belief that light-weight code, fast and accurate performance, Unicode support and modularity is very important, and crucial for the future state of the web.
Two and a half years ago, I released the first version of getElementsByClassName. With how web browsers has evolved since, I thought I’d release a real ultimate version, dated 2008. π
A feature most people don’t seem to know about is conditional compilation in Internet Explorer web browsers.
A while ago I received a book which I had anticipated to have the chance to read: The Art & Science Of JavaScript.
A very common problem when people code JavaScript, is that they don’t take automatic type conversion into account. As a result, there are numerous weird errors and JavaScript is getting a lot of blame for being loosely typed. Therefore, I’d like to show you an easy way to avoid that problem.
DZone asked me to write an article about DOMAssistant, so I chose to give an introduction to how to work with element selection and especially different ways of making AJAX calls. Please read Making Element Selection and AJAX simple with DOMAssistant for more information.
Many people ask me how I choose to address an situation where all content in a web should be available without JavaScript, but certain parts hidden if JavaScript is enabled.
We have just released a PictureSlides plugin for DOMAssistant, with which you can create picture slideshows, image presentations and also complete picture galleries.
There has been a fair share about JavaScript and event delegation, but since a lot of people doesn’t seem to have read it, I thought I’d re-iterate the point here. The more the merrier, right? π