When news came out the other day about Google’s move to host some of the more popular JavaScript libraries on their servers I was going to write a post about the privacy implications. As I sat down this morning to write that very post I came across another JavaScript related news story that trumped the one from Google.
SocialHistory.js is a brand new piece of JavaScript code that, while clever, is also a little bit disconcerting at the same time. This script allows a site to determine what social networking (or regular sites) a visitor has previously visited. The creator of the script uses the example of implementing this to determine what social bookmarking links to provide on a page.
My first thought was the amount of market research a person could collect with this. What’s stopping me from taking the script, slightly modifying it so that it actually stores the data is collects and then using that data to determine if making pushes to promote my site on certain social networks would be worth my time? The answer is probably nothing.
But is that a good idea? The data is probably relatively harmless. For instance, the script can tell that I personally use sites like Facebook and del.icio.us but that’s true for, quite literally, hundreds of thousands of people. Maybe the data you could gather from SocialHistory.js to use for research means wouldn’t prove to be very valuable in the long term but I’m just not sure it’s any of my business to see that information in the first place.
On Monday, Google announced that some of their applications had been upgraded on the iPhone and iPod Touch. I finally got a chance to check out the new version of Gmail this morning on my iPod Touch and it’s probably one of the best iPhone specific sites I’ve seen yet. The only thing that closely rivals it is Facebook on the iPhone.
Joe Hewitt is the man responsible for Facebook on the iPhone. Fortunately for the rest of us he released the JavaScript and CSS he used in developing the site. The package is called iUI and is available under the New BSD License. You can get a feel for just what iUI can do by checking out some examples on its Google Code site.
Creating a mobile version of a site is probably one of those projects that most of us get all excited about and then immediately place on the backburner. How much longer can we put a mobile version off? The market share of the iPhone is exploding and tools like iUI can make it easier to get a mobile site launched than ever before.
I came across a post on Web Resources Depot the other day about a JavaScript library called mapper.js that lets you add a hover effect to any regular image map. mapper.js even lets you export your image maps as SVG files if you’re into that kind of thing.
This was kind of a convenient find for me because I had just gotten done building a simple image map for a client site. The exact map, with the hover effect, looks like this:
mapper.js works by taking the coordinates defined in the image map and drawing a corresponding shape on an element you have wrapping the image (like a div, for example). It’s compatible with Mozilla Firefox 1.5+, Opera 9+, Safari and IE6+.
The makers of HullBreach, a browser-based space MMORPG for the Nintendo Wii, have released a JavaScript SDK for the Wii Opera browser that lets you do some pretty incredible things.
This SDK lets you write code that interacts with the Wii Remote (and its built-in motion sensor), draw rudimentary 3D graphics and even handle multiplayer communication. All inside the Opera browser available within the Wii itself.
One of the examples included on the site is a very basic StarFox demo that you have to see for yourself. I’ve included a screenshot below for those of you who don’t have browsers capable of supporting the SDK.
There are some reports online that this is an official Nintendo and/or Opera release but that certainly doesn’t appear to be the case. From what I can tell this is an entirely third-party development.
If you’re one of the lucky ones with a Nintendo Wii and you’ve got some free time you might want to give this SDK a try. If you get stuck there’s some pretty light documentation available.
I maintain a slightly aging Intranet application and came across a JavaScript “Permission Denied” error on a page handling pop-up windows. I know pop-up windows aren’t very Web 2.0 but you can save your evangelism for another day. In defense of all things flashy and new, the app is slowing migrating to AJAX. Very slowly.
Anyway, after some light searching I came across a thread at thescripts that goes into some detail on the problem before digressing into a programmer slapfight.
Let me try and save you the trouble of wading through that mess…
(more…)