Google Dart … the new Google Buzz??
Google recently announced Google Dart, a new programming language intended as both a server- and client-side language that offers greater efficiency and better syntax and structure than JavaScript. Many folks believe it’s meant to replace JavaScript.
My initial reaction to the news: horror. OK, not quite, though the thought of JavaScript going into early retirement was a funny one. I don’t see that happening any time soon. I do recall Google Buzz and what a fiasco that was, though I badly *wanted* to like it. It was officially terminated / retired December 15th. Now of course there’s Google+, which seems to be gaining momentum. With Microsoft and other major players already poo-pooing Dart, it’s starting to look like another Buzz situation though for different reasons (Buzz suffered from concerns about its privacy settings. Perhaps Dart will return in another incarnation. To follow in the same trend as Google+ may I suggest something like Google♥ or Google→? The second doesn’t quite look like a dart, and the first might get confused for “Google Love” rather than “Google Heart” … but the name they pick(ed) is the least of their worries with this new undertaking IMHO.
Check out some of the discussion over at SitePoint.
Selecting HTML tag(s) by CSS Class using JavaScript
Often web developers like to use:
document.getElementById(‘yourelement’).style.display = ‘none’;
With jQuery there are easier ways to do this, but I’m talking just about plain JavaScript.
But suppose you’re using some script that’s encoded and prevents you from adding unique IDs into <div> tags, for example. This is the case with CBSubs, for Joomla. The files are encoded and for most DIVs there are no IDs, so we’re left having to select them based on the CSS classes (in CBSubs you can assign each plan a unique CSS class).
Here’s one way of doing it;
Full article; http://tinyurl.com/6h6szp2
