I think you've hit upon your own solution. Only include the Javascript that is completely optional. Rollovers are fine (I suppose), but do not rely on Javascript to be your only validation mechanism for CGI scripts (for example). (This is something that the Rat book mentions.)

I don't use Javascript to validate CGI scripts as the moment because my scripts are generally small enough that the performance hit isn't that bad. This also keep me from having to maintain two separate codes bases for the same task (validating input) and is helping my Perl skills.

As far as browsing goes, I generally have Javascript disabled--unless I know that a site has a Javascript-based feature that I need/like or unless the site has really good use of CSS. (Netscape 4.7x does not render CSS unless Javascript is enabled.)

Also, I use different browsers at different times. I use one for sites I trust or need Javascript/CSS with and I use another (with everything disabled) for most other activities. I've found this useful to test my sites with as well and generally ensure that my sites degrade as nicely as reasonably possible.

--f


In reply to Re: CGI and JavaScript by footpad
in thread CGI and JavaScript by stuffy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.