LWN.net Logo

Website observation

Website observation

Posted Nov 3, 2004 15:32 UTC (Wed) by Max.Hyre (subscriber, #1054)
Parent article: Novell: Unbending the truth

It looks like they're really trying, and then they go tossing in gratuitous Javascript use.

<rant>

Too damn' many websites go to JS when the right way is the most obvious and simplest: put in a hyperlink! Many folks (like me, for a random example) browse with Java & JS off, to minimize unpleasant surprises. The result is that I must either check the source to reverse-engineer the JS, or decide whether the site is worth turning it on for, with the accompanying risk that I'll forget to turn it off before visiting a malicious URL.
</rant>

One of these days I'll get around to hacking a ``JS for this site only'' option into Firefox. (Maybe a ``JS for this tab only'' would be good, too.)


(Log in to post comments)

Website observation

Posted Nov 4, 2004 22:30 UTC (Thu) by dbreakey (guest, #1381) [Link]

Where are they using JavaScript?

After checking the source, I see some trivial JS for tweaking the layout, but the fancy bit where they change the color of the paragraphs as you hover over them is pure CSS; no JavaScript involved. It's quite a handy little trick, really. Check meyerweb.com, specifically the css/edge link, for full details on how to do it. This is the same guy that got me really interested in the true potential of CSS; it's quite eye-opening, really.

Note, though, that most of the tricks demonstrated here only work properly in Mozilla, or a Mozilla-derived browser; IE, especially, requires nasty hacks to the CSS descriptor files to work acceptably.

Incidentally, viewing the Novell article in a browser with JS disabled results in the side menu going bye bye; that seems to be about the gist of it. Really, though, even that could be trivially handled using CSS, so somebody's just lazy. Then again, they're probably just using a CMS that doesn't give them much choice.

Website observation

Posted Nov 11, 2004 21:35 UTC (Thu) by shane (subscriber, #3335) [Link]

One of these days I'll get around to hacking a ``JS for this site only'' option into Firefox.

I used to be a Firefox fanboy, but the latest Konqueror kicks ass. It supports the feature you mention.

Copyright © 2009, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds