Ah... which one?  Anyway this is a Firefox bug if the error message
fails to appear on Firefox > Tools > Error Console and a Firebug bug
otherwise.
jjb

On Feb 23, 10:14 pm, JohnnyFantastic <[email protected]>
wrote:
> Hi John,
>
> No there is no syntax error here but remove 1 paren and it is like the
> code i originally had. That is not flagged.
>
> Thanks.
> John
>
> On Feb 23, 9:32 pm, John J Barton <[email protected]> wrote:
>
> > There does not appear to be any syntax error in the code.
>
> > jjb
>
> > On Feb 23, 6:44 pm, JohnnyFantastic <[email protected]>
> > wrote:
>
> > > Hi,
> > > The code below is from an example program on the internet. It was
> > > lacking a 6th closing parenthesis in the function and as a consequence
> > > the function did not execute. Firebug found no error in this so I had
> > > to be my own compiler and carefully scan the code till I found the
> > > problem.
>
> > > Thanks.
> > > John
> > > <HTML>
> > > <HEAD>
> > > <TITLE>Two Choices Work as One</TITLE>
> > > <SCRIPT type="text/javascript">
> > > function insok()
> > > {
> > >  var isgold = document.myform.payment[1].checked;
> > >  var isins = document.myform.insurance.checked;
> > >  var ok = null;
> > >  if ( isgold == true && isins != true )
> > >  {
> > >   ok = confirm("Do you want insurance?");
> > >   if ( ok == true )
> > >   {
> > >     document.myform.insurance.checked = true;
> > >   }
> > >  }}
>
> > > </SCRIPT>
> > > </HEAD>
> > > <BODY>
> > > <HR>
> > > <FORM NAME="myform" METHOD="POST" ACTION="mailto:[email protected]";>
> > > <STRONG>Payment Options</STRONG><BR>
> > > <HR>
> > > <INPUT TYPE="radio" NAME="payment" VALUE="1" onClick="insok()">
> > > Personal Check
> > > <INPUT TYPE="radio" NAME="payment" VALUE="2"  onClick="insok()"> Gold
> > > Bullion
> > > <HR>
> > > <INPUT TYPE="checkbox" NAME="insurance" VALUE="Ins"> Insurance?
> > > </FORM>
> > > <HR>
> > > </BODY>
> > > </HTML>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to