1 | 2 | 3 | 4 | 5

21 - 24   [24]

Firefox Rises From The Ashes

Also relates to Web Standards

Well it was once called Pheonix, but that feels like a distant ancestor of the newly released Firefox Browser this week. I decided to hold back the excitement a few days to let the server load ease off, and finally tried out Firefox yesterday.

Already much acclaim has been accredited to this, version 0.8 of the pre-release browser of the future, and I can only add further praise. The development team have clearly put a lot of preparation into this latest release, even down to the finer details like the slick new icons and advertising logos.

The benefits for development have already been raised on Stylish Scripting, suffice to say I am eternally grateful to finally see the DOM Inspector integral to the outfit.

For general browsing, the extensions just get better and better. A favourite of mine has always been the RSS Reader Panel, being very lightweight and quick and easy to get running. This is better than ever with a check for updates option, OPML import and export, stripping of HTML tags in the tooltip summary and the ability to load the feed in the content window with custom CSS. The RSS icon has even been dusted off to blend naturally with the other icons.

To be expected from a Mozilla based browser, Firefox has excellent support for Web Standards, and the inclusion of the Windows executable installer should make setup more accessible to the average user. I could probably ramble on indefinately about the finer features, but all I will say is if you are reading this blog and have not tried Firefox yet, you don't know what you are missing!

Posted on Feb 12, 2004 at 21:28:03. [Comments for Firefox Rises From The Ashes- 0]

Key Press Event Revisited

Also relates to Accessibility and DOM Scripting

In a posting last month I presented an onkeypress event handling script to avoid the Mozilla browsers triggering the event when the user tabs of the anchor. This was achieved by calling an intermediary function when the onkeypress event handler was triggered that would call the final function (in this case a style switcher) only if the pressed key was return.

While this resolved the problem, I discovered the other day that a better solution is to just call the onclick event of the same anchor element when the onkeypress event is triggered.

<a href="#" onclick="setStyleSheet('sheet'); return false;"
onkeypress="this.onclick">Switch to List View</a>

This works fine on the Mozilla browsers and does not raise the problem when the function is called directly by the event handler. Also, there is no need to hard code this and it can be extracted to a DOM creation scripting once the page has loaded, thus making the markup ever so slightly purer.

Posted on Oct 15, 2003 at 04:49:05. [Comments for Key Press Event Revisited- 3]

Key Press Event Handling

Also relates to Accessibility and DOM Scripting

On a current project, where accessibility is essential, I have integrated a stylesheet switcher on two pages where a mouseover affect on an image montage displays an introduction to each page in a separate box below the montage. The montage is structurally defined as a definition list, since it is a visual representation of links to pages on the site, with a brief description of each page. The stylesheet switcher allows users to switch the view to an actual list representation, if, for example, they are using only the keyboard. For CSS-enabled browsers without Javascript, the switcher loads a fresh page with the list display, and for non-display browsers the montage is just represented as a list from the outset.

While, I hope this will be effective under most conditions, I found a frustrating problem with supplementing the onclick event with an onkeypress event for keyboard users in Mozilla and co. When tabbing through the links on the page, as soon as the user tabs off the switcher (containing the event handler) the key press event is triggered. Well, of course, this is the correct behaviour, but Inte$net Exploder actually only triggers the event when the Return key is pressed, which is misleading to the developer, and incorrect interpretation.

The solution was to integrate a filter function that is called by the onkeypress event and this in turn only calls the style switcher function if the key pressed was Return

Here is the code:


function checkKeyPressed(evt, func, params)
{
  evt = (evt) ? evt : (window.event) ? event : null;
  if (evt)
  {
    var charCode = (evt.charCode) ? evt.charCode :
                   ((evt.keyCode) ? evt.keyCode :
                   ((evt.which) ? evt.which : 0));
    if (charCode == 13) func(params);
  }    
}

Where 13 is the ASCII value for the Return key. As well as passing the event as argument, I passed the function to be called and its parameters, to make the function generic. The scenario is just as relevant if using the event handlers to open a new window from a link (although this is strongly discouraged). The resulting anchor is as follows:


<a href="#" onclick="setStyleSheet('sheet'); return false;"
onkeypress="checkKeyPressed(event, setStyleSheet, 'sheet');"
>Switch to List View</a>

It is important that a false value is not returned in the key press event since this would prevent the user from tabbing beyond the style switcher link. The DHTML cookbook suggests the key detection in the filter should work in Netscape and Exploder back to v.4. It resolved the issue for this project.

Posted on Sep 14, 2003 at 16:44:31. [Comments for Key Press Event Handling- 7]

Firebird, A Browser For The Future

Also relates to Browsers

Had a read of Blake Ross's Marketing Firebird Article and Simon Willison's Follow Up (+ comments) last night, and decided to delve a bit deeper into Firebird and it's capabilities. I have had 0.6 installed for several months now, but my default browser has been Mozilla, since this carries the DOM Inspector, Calender and other useful development tools.

Well following a couple of hours play, a few extension installs, and a change of theme to Breeze, I can now say I am a very content user of Mozilla Firebird. I had two recoverable crashes during extension installs, but otherwise have seen no ill effects following intensive use over the last 24 hours. I have transferred my Calender file across to the Firebird profile, and the only thing lacking really is the DOM Inspector. But there is a noticeable improvement in performance and speed now. What draws me to this browser is the minimal initial install and the freedom to install the extension I actually want to use without add-ons that just eat up my resources as they gather dust. I have found the following particularly delectable:

Mozilla Amazon Extension
An efficient and quick lookup window for Amazon products.
Quick Note Extension
Already commented on this addition to Opera 7.01, and the ability to take and store notes as just as flexible here.
RSS Reader Extension
Great! While I tend to use my aggregator to catch the latest in my favourite blogs, this is readily manageable and already have a long bookmarked list of feeds.
Web Developer Toolbar Extension
Very handy having quick access to all the validation sites from a toolbar as opposed to the context menu.

So the big question is why does the browser get so much criticism on Downloads.com? (Sorry, I am not going to give the link, you will just have to track it down if you must!) Well personally I tend to agree with Mickey C's remarks that many of the reviews do seem too calculated. I cannot see how so many people can become so bitter about a browser in such a small space of time, with no opinions from the opposite side of the coin.

Admittedly, there are quirks. I tracked resources with Cacheman and the browser does appear to get a bit greedy, it does boot slow, and there is the autocomplete bug - a known issue partially resolved in 6.0.1, but it seems to me the features far outweigh any satisfaction I have ever received from Micro$oft Internet Exploder. It is still early days for Firebird, but this is a very tidy and well thought on piece of software. I see Firebird becoming an integral part of my day to day surfing, while I will continue to use my browser suite for development. Even as I compose, Thunderbird is downloading.

A big thumbs up!

And if you want to know what makes Firebird, read up on Why you should switch to Firebird.

Posted on Aug 04, 2003 at 23:11:48. [Comments for Firebird, A Browser For The Future- 0]

Breadcrumbs Trail

[ Home ] -> TW Blog -> Firefox and Co
Site Map

The Severn Solutions website achieves the following standards:

[ XHTML 1.0 ] [ CSS 2 ] [ WAI AA ] [ Bobby AA ]

Page compiled in 0.113 seconds