[OT] Browser compatability

Paul King sciguy-Ja3L+HSX0kI at public.gmane.org
Mon Sep 15 00:30:11 UTC 2008


I was at http://www.jslint.com/ and entering some of this code. After
correcting some syntax (no semicolon), I pasted the snippet into its
debugger, and it said that I should avoid HTML event handlers
altogether. It explains why some browsers support it and others don't.
That leaves only CSS menus, I suppose.

Thanks for your help

Paul King

On Sun, 2008-09-14 at 19:00 -0400, Ian Petersen wrote:
> On Sun, Sep 14, 2008 at 6:40 PM, Paul King <sciguy-Ja3L+HSX0kI at public.gmane.org> wrote:
> > The part that IE chokes on are dropdowns such as:
> >
> > <form action="POST">
> >        <select>
> >        <option value = "">Select a country</option>
> >    <option  value = "Australia"
> >      onclick = "getData('intfoods/australia.txt', 'jack')">Australia
> >    </option>
> >    </select>
> > </form>
> 
> Guessing here, but I think you need to get rid of the onclick on the
> <option> and replace it with an onchange (or maybe onclick? don't
> remember) on the <select>.  You'll then have to derive the URL from
> the selected-option's value, possibly using the selectedIndex
> attribute of the <select>.
> 
> Ian
> --
> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
>
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list