[PLUG] Jquery was Re: Javascript, Firefox, IE event handling

Keith Lofstrom keithl at kl-ic.com
Wed Jul 15 07:21:47 UTC 2009


Keith asks:
> >OK, so the template file I use for WYDIWYS has a problem.
> >It pulls event keyCodes with firefox, not with Safari or IE.
> >I can still navigate with a mouse, I just can't use my clicker.

On Tue, Jul 14, 2009 at 09:19:07PM -0700, Joe Pruett wrote:
> probably your best bet is to use something like jquery which handles 
> browser differences for you.

Thanks, Joe!

jQuery looks like just the ticket.  It is open source, free, and
provides one interfact that works with all browsers - somebody
else takes care of all the silly exceptions.  A client side
include of jquery.js downloads the 50K to 100K file, which is
cached and used with all the pages that need it.  

Indeed, adding another .js file for the prev/next slide selection
stuff looks like a good way to factor out some common JavaScript
from all my slides.  

I found a description of jQuery in "JavaScript - the Missing Manual"
(2008) which I just brought home from the library.  This looks like
a handy book.

However, if you, or anybody else reading this, understands jQuery
and JavaScript well enough to help Eric and me improve our slide
presenters, please come to Advanced Topics Wednesday night at 7pm
and teach us something about it.  

Please help our slide presenter programs Suck Less.

Keith

BTW - why does this stuff matter to open source?  Because webslides
and websites in general should be viewable with as many browsers as
possible - Mozilla/Firefox, Opera, Safari, Internet Explorer, etc.
JavaScript is an open language, the SeaMonkey interpreter built into
Mozilla/Firefox is open code, and if you are designing web pages 
with client-side smarts, JavaScript is probably your best bet.  Yes,
Micro$oft forked JavaScript into JScript, and inverted the Document
Object Model because they are meanies, but that is the world we live
in, and if we want our web pages to be accessable to IE users, we 
need to design J[ava]Script that swings both ways.  jQuery looks like
an easy (and open source) way to do so.

-- 
Keith Lofstrom          keithl at keithl.com         Voice (503)-520-1993
KLIC --- Keith Lofstrom Integrated Circuits --- "Your Ideas in Silicon"
Design Contracting in Bipolar and CMOS - Analog, Digital, and Scan ICs



More information about the PLUG mailing list