Re: HTML & Java script doubt..
| From: | Richard Lynch | Date: | Thu, 04 Jul 2002 22:37:08 +0000 |
| Subject: | Re: HTML & Java script doubt.. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-105531@lists.php.net to get a copy of this message | ||
>Hi friend,
>
> sorry for putting this question to php-list.
>
>Here I am getting the error as "Object doesn't support this property or
>method" in line number 22.
>
>============================
>
><html>
><head>
><script language="javascript">
>function checkall()
>{
> var n=0,i=document.form1.OptionList.length;
>
> while(n<i)
> {
> document.form1.OptionList[n].checked=true;
> n=n+1;
> }
>}
></script>
></head>
>
> <input type="checkbox" name="checkall"
>OnClick=checkall()> /////////This is error line
I can only suggest adding the quote marks around "checkall()"
And adding a ;
And a return.
So, like, maybe this:
onClick="return checkall();">
Maybe checkbox's don't do onClick... Seems pretty weird, but who knows
from JavaScript?
It's not PHP.
--
Like Music? http://l-i-e.com/artists.htm