Technology Tales

Adventures & experiences in contemporary technology

Turning those ads off…

2nd October 2007

I had a recent problem with InternetNews.com: its adverts were causing Firefox to lock up my CPU. While I do put my CPU through its paces, I’d rather that others didn’t decide to do the same and with things that do not add a great deal of value. So it was time to set ZoneAlarm loose by cranking up its ad blocking to the max. There are occasions where exceptions are needed and right-clicking on a domain name in the site list in the Privacy area allows you to relax things on a site by site basis. Obviously, you need to know the website well but I don’t ever remember having this sort of control with Norton Personal Firewall when I had it on my main PC.

CSS Control of Text Wrapping

11th September 2007

I recently spotted a request for a drop down list like that which you see below. I managed to create it using the CSS but it only worked for Firefox so I couldn’t suggest it to the requester.

form select, form select option {width: 185px; white-space: normal;}

form select {height: 16px; width: 200px; white-space: normal;}

form {margin: 300px auto 0 auto; width: 300px;}

Here’s how it looks in Firefox 2:

Drop down Menu with Wrapped Entry Text

And in IE6:

Same Drop down Menu as Displayed by IE6

And in Opera 9:

Same Drop down Menu as Displayed by Opera 9

It would be nice if the white-space attribute gave the same result in all three but hey ho… As it happens, the W3C are working up other possible ways of controlling text wrapping in (X)HTML elements but that’s for the future and I’ll be expecting it when I see it.

For menus with wrapped entries, using DHTML menus and DOM scripting seems the best course for now. I suppose that you could always make the entries shorter which is exactly what I tend to do; I am pragmatic like that. Nevertheless, there’s never any harm in attempting to push the boundaries. You just have to come away from the cutting edge at the first sign of bleeding…

Of course, if anyone had other ideas, please let me know.

IE7 on the way up…

9th September 2007

I don’t spend too much time looking at that stats in Google Analytics but I do find it useful to see what people come to see. Another thing that I keep on radar is the browser technologies that visitors are using. Screen resolution is a particular interest of mine. However, browsers and their versions are watched too and I have spotted the ascent of IE7 from where it was; there seems to be a surge in recent times. I am unsure as to the cause for this but it’s definitely happening and Vista take up seems to have noting to do with it.

An unexpected side effect

29th June 2007

I recently posted about using mod_rewrite to block access to your images from all but the websites to which you want access to be available. Following so doing, I discovered that my FAVICON had disappeared from Firefox’s address. As it turned out, it was easy to fix and that is covered in another recent post.

IE6 and JavaScript performance

22nd June 2007

Having been exposed to an application at work that uses a lot of JavaScript, I fully appreciate what some mean when they talk about IE6’s inefficient handling of JavaScript. After seeing a web page taking an age to reload and your CPU taking a hammering because of JavaScript processing, the penny does tend to drop… Needless to say, this very much impacts the world of AJAX-driven web applications with their heavy dependence of client-side JavaScript. While IE7 does come to the rescue, there remain plenty of IE6 users still out there and this is reflect in website statistics. This reflects a certain level of inertia in the browser market that not only afflicts the uptake of IE7 but also the likes of Mozilla, Opera and Safari. It also means that anyone developing AJAX applications very much needs to continue testing in IE6, especially if the product of their labours is for wider public use. An example of such an application is Zimbra, an open source web application for messaging and collaboration, and the people behind it have generously share the results of their browser performance benchmarking. They did comparisons of IE6 vs. IE7 and Firefox 2 vs. IE7. IE6 easily came out as the worst in these while Firefox 2 was the best. I suppose that the next question to be asked centres around the type of code that is processed inefficiently by IE6. I wouldn’t be at all surprised if a list emerged but here’s one: using Microsoft’s proprietary innerHTML object to update the DOM for a web page format. Having a quick trawl on Google, this came up for mention as a cause of memory leaks. It is also a Microsoft innovation that never got taken up by those overseeing web standards, hardly a surprise since a spot of DOM scripting achieves the same end. It may be faster to code than any alternatives, and it does have some support from other browsers, but it does seem to have got a bad name and so should be avoided if possible. That said, it would be interesting to see a performance comparsion between innerHTML and DOM methods in IE6.

Internet Explorer Developer Toolbar

13th June 2007

Here’s something that I found while looking into something else: Internet Explorer Developer Toolbar. My first impression is that it looks like IE’s answer to Firefox’s Web Developer add-on and they do share a lot of functionality. While I am going to stay with Firefox as my main browser, IE’s Developer Toolbar will prove invaluable for those occasions where web page rendering is not the same for both Firefox and IE.

The return of the Navigator

13th June 2007

Netscape Navigator

With the launch of the ill-fated Communicator, Netscape dispensed with the Navigator brand that had served it so well up to that point. And it continued the practice when it turned to re-branding the output from the Mozilla project. The new Navigator is, in essence, a tweaked variant of Firefox’s latest incarnation and has the spelling checking capability that I have been missing when giving Safari a spin. You have to ask why and I am not certain that I have the answer. That said, it does feel slick and works well, a definite change from some of it predecessors then.

Safari on Windows?

12th June 2007

Safari on Windows?Steve Jobs recently surprised an audience at Apple’s Worldwide Developer’s Conference with the announcement that the Safari web browser is being made available for Windows. While everyone else is awaiting Apple’s forthcoming iPhone, the Safari announcement is a more important one to me; not being big on phones, I will let the iPhone excitement pass me by. Without either buying a Mac or running OS X in a virtual machine, there was no other way for me to test my web pages in Safari bar looking for a rendering site on the web. Now, that has all changed and I have downloaded the beta to have a look; it should iron out any rough edges that Mac users have been seeing.

Update: Safari seems to have got a mixed reaction from Windows users; some have tried it with Vista and cited issues. Another gripe has been its memory footprint but I have seen Firefox take up 100 MB.

Accuweather ad frenzy

14th May 2007

I have had to stop using the Accuweather.com website because of annoying pop-up advertisments, the origins of some of which are branded hacking websites by the firewall at work. Even with Firefox, the whole approach is painful with windows popping up asking to install some utility software onto my home PC. That is certainly something that I am not going to do and the whole in-your-face approach seems direputable in any case. It is all very much over the top and I intensely dislike the hard sell mentality and will not be returning: it’s an effective way to drive away visitors.

Wonders of the middle mouse button

26th February 2007

My installation of Firefox seems to have stopped listening to the target attribute of hyperlinks. Thankfully, the middle mouse button comes to the rescue. Clicking on a link with the middle button opens it the destination page up in a new window or tab, depending on how you set your defaults. The behaviour goes even further than this: the trusty middle mouse button does the same for bookmarks and the Google search bar; all very useful. And its not just a Firefox thing either. IE7 does the same thing for web page hyperlinks and bookmarks while in Opera, it is limited links on web pages.

  • All the views that you find expressed on here in postings and articles are mine alone and not those of any organisation with which I have any association, through work or otherwise. As regards editorial policy, whatever appears here is entirely of my own choice and not that of any other person or organisation.

  • Please note that everything you find here is copyrighted material. The content may be available to read without charge and without advertising but it is not to be reproduced without attribution. As it happens, a number of the images are sourced from stock libraries like iStockPhoto so they certainly are not for abstraction.

  • With regards to any comments left on the site, I expect them to be civil in tone of voice and reserve the right to reject any that are either inappropriate or irrelevant. Comment review is subject to automated processing as well as manual inspection but whatever is said is the sole responsibility of the individual contributor.