- From: elcio abrahão <elcio_abrahao@yahoo.com.br>
- Date: Thu, 23 Jan 2014 12:24:13 -0800 (PST)
- To: Christopher Reed <creed@webucator.com>, 'Ricardo Vercesi' <rvercesi@gmail.com>
- Cc: "public-html5spec@w3.org" <public-html5spec@w3.org>
- Message-ID: <1390508653.7630.YahooMailNeo@web126001.mail.ne1.yahoo.com>
Hi Christopher ! Thanks for your reply ! I already tried to use the field value instead of the checked value, but this is not the problem.... The Javascript inside of the <oninput> tag is working well... If I change the radio box before fill the values on the fields the calculation is correct, but if I first fill the fields and then try to click on the other radio box option the "onchange" event is not fired and the calculation result did not change.... To see the new calculation I need to change some field value... What I would like to do is change the calculation when I click on the other radio option !!! My core problem is that the <output> tag did no fire the event to redo the calculation when this event came from a radio box !!!! Thanks anyway !!!! Elcio A. ................. Change is the law of life. And those who look only to the past or the present are certain to miss the future. John F. Kennedy [in a Speech, June 25, 1963]. Em Quinta-feira, 23 de Janeiro de 2014 15:24, Christopher Reed <creed@webucator.com> escreveu: Elcio, Look at this line: <form name=”form1″ oninput=”if(document.form1.tipo1.checked==true){…}else{…} Based on your output, the above should be if (tipo.value = 1){…}else{…} Otherwise, I would think that you could remove “tipo” from your for attribute. Hope this helps! Christopher Reed “The oxen are slow, but the earth is patient” From:elcio abrahão [mailto:elcio_abrahao@yahoo.com.br] Sent: January 23, 2014 8:59 AM To: Ricardo Vercesi Cc: public-html5spec@w3.org Subject: Re: HTML5 tag specs [via HTML5 Specifications Community Group] Hi Ricardo ! So I did !!!! I tested element id and element name... They did not work.... I tested on FireFox and Chrome for MAC OS 10... That's the reason I m writing to this forum... It's look like that the "for" attribute did not work with "radio" type fields .... Could be my browsers too... but I do not think so.... Did you know some one that could check this for us ?? Thanks ! .................. Change is the law of life. And those who look only to the past or the present are certain to miss the future. John F. Kennedy [in a Speech, June 25, 1963]. Em Quinta-feira, 23 de Janeiro de 2014 12:54, Ricardo Vercesi <rvercesi@gmail.com> escreveu: In that case, it should be <output for="element_id"> Ricardo Vercesi web and beyond... On Thu, Jan 23, 2014 at 2:17 PM, elcio abrahão <elcio_abrahao@yahoo.com.br> wrote: Hi Ricardo ! > >Thanks for your reply ! > >My problem is not on the "for" used on the LABEL tag. > >There is other "for" attribute on the <OUTPUT> tag !!!! > >This "for" attribute is to add a trigger event on the form fields. When I change some value on the fields cited on the "for" atribute the HTML5 will fire the javscript inside the <oninput> tag. > >This "for" attribute is not related to the "for" attribute used with de <LABEL> tag... > >Thanks again ! > >Elcio A. > > >.................. >Change is the law of life. And those who look only to >the past or the present are certain to miss the future. >John F. Kennedy [in a Speech, June 25, 1963]. > >Em Quinta-feira, 23 de Janeiro de 2014 9:39, Ricardo Vercesi <rvercesi@gmail.com> escreveu: >The "for" attribute is used usually within the label tag and should refer to the name of the element. So if you have a radio button named "myRadio" the for attribute of your label should be "myRadio" as well and not "radio". > > >Ricardo Vercesi >web and beyond... > >On Wed, Jan 22, 2014 at 7:58 PM, Elcio Abrahao <elcio_abrahao@yahoo.com.br> wrote: >Hi Guys !!! >> >>My name is Elcio Abrahão and I m an University Teacher in São Paulo - Brazil. >> >>I m using HTML5 to teach programing for my students the form did not change the >>output value when I add a field type "radio" to the "for" attribute. Is this a >>project specification or this is a [...] >> >> >> >>---------- >> >>This post sent on HTML5 Specifications Community Group >> >> >> >>'HTML5 tag specs' >> >>http://www.w3.org/community/html5spec/2014/01/22/html5-tag-specs/ >> >> >> >>Learn more about the HTML5 Specifications Community Group: >> >>http://www.w3.org/community/html5spec >> >> >> >> > >
Received on Thursday, 23 January 2014 20:27:40 UTC