|
 |
javascript thread: SV: RE: SV: Re: Something wrong with onclick and button in IE6 ???
Message #1 by "Robert Nyman" <robert.nyman@c...> on Tue, 22 Oct 2002 18:18:42 +0200
|
|
Me too...
/Robert
-----Ursprungligt meddelande-----
Fr=C3=A5n: Joe Fawcett [mailto:joefawcett@h...]
Skickat: den 22 oktober 2002 18:11
Till: javascript
=C3=84mne: [javascript] RE: SV: Re: Something wrong with onclick and
button in IE6 ???
I thought it was to do with HTML+TIME?
Joe
>From: Teng-Fong SEAK <tfseak@f...>
>Reply-To: "javascript" <javascript@p...>
>To: "javascript" <javascript@p...>
>Subject: [javascript] RE: SV: Re: Something wrong with onclick and
button
> in IE6 ???
>Date: Tue, 22 Oct 2002 17:27:18 +0200
>
>Yeah, Joe's mail (even though isn't quite exactly true) gave me an idea
>to look up "start" in my JavaScript book's index, and indeed, I found
>that
>start() is a method of marquee element in IE4+ !! Damn it !!
>
>IMO, this is a bug in IE. Since start() isn't a method (action) of
>HTMLFormElement, IE should look elsewhere to find the function called
>start().
>
>Anywhere, seems like I have to remember more "reserved words" than I
>should have with ECMAScript ...... :-/
>
> > -----Message d'origine-----
> > De : Robert Nyman [mailto:robert.nyman@c...]
> > Envoy=C3=83=C2=A9 : mardi 22 octobre 2002 10:09
> > =C3=83=E2=82=AC : javascript
> > Objet : [javascript] SV: Re: Something wrong with onclick and button
> > in IE6 ???
> >
> >
> > I just have to agree with the e-mail below and what Joe wrote. Did
> > this work for you?
> >
> >
> > /Robert
> >
> >
> > -----Ursprungligt meddelande-----
> > Fr=C3=83=C2=A5n: pcallaghan@a...
[mailto:pcallaghan@a...]
> > Skickat: den 20 oktober 2002 14:54
> > Till: javascript
> > =C3=83=E2=80=9Emne: [javascript] Re: Something wrong with onclick
and button in
> > IE6 ???
> >
> >
> > The problem is in the naming of the function 'start()'
> > This is a reserved function name and causes the error. Just change
> > the name of the function, and the reference to the function, and it
> > will work.
> >
> > eg
> >
> > <HTML>
> > <HEAD>
> > <SCRIPT LANGUAGE=3D"JavaScript">
> > <!--
> >
> > ...cut...
> >
> > function strt(){
> > progCounter =3D 0
> > goOn()
> > }
> >
> > ...cut...
> >
> > <form name=3D"abc">
> > <input type=3D"text" name=3D"progtxt" size=3D3 readonly value=3D"0">
</form>
> > <p> <span onclick=3D"strt()">Go!</span><br> <input type=3D"button"
> > value=3D"Go!" onclick=3D"strt()">
> >
> > </BODY>
> > </HTML>
> >
> > ---
> >
> > Improve your web design skills with these new books from Glasshaus.
> >
> > Usable Web Menus
> > http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/th
>eprogramme
>r-20
>Constructing Accessible Web Sites
>http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogram
m
>e
>r-20
>Practical JavaScript for the Usable Web
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogram
me
>r-20
>
>
>
>---
>
>Improve your web design skills with these new books from Glasshaus.
>
>Usable Web Menus
>http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogram
m
>e
>r-20
>Constructing Accessible Web Sites
>http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogram
me
>r-20
>Practical JavaScript for the Usable Web
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogram
me
>r-20
>
>
>---
>
>Improve your web design skills with these new books from Glasshaus.
>
>Usable Web Menus
>http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogram
m
>e
>r-20
>Constructing Accessible Web Sites
>http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogram
me
>r-20
>Practical JavaScript for the Usable Web
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogram
me
>r-20
_________________________________________________________________
Internet access plans that fit your lifestyle -- join MSN.
http://resourcecenter.msn.com/access/plans/default.asp
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
|
|
 |