You can use Form.Observer to watch for changes to any values in a form. This assumes you have assigned the name attribute to each of your form fields. Without that, the getValue calls will return nothing. See http://www.prototypejs.org/api/timedObserver/form-observer for more details.
Something a bit puzzling though is why your onchange is not working. If using Event.observe(element,event,function), keep in mind that the names of the events are "change", "click", "mouseover", . and not "onchange", "onclick". Event.observe(myButton,"click", function() { alert("Leroy was here"); }); Or myButton.onclick = function() { alert("Leroy was here"); } From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Amrutha Krishnan Sent: Friday, November 19, 2010 10:42 PM To: prototype-scriptaculous@googlegroups.com Subject: Re: [Proto-Scripty] Re: How to create math manipulatives Well I am creating a small app. to help you understand what I am looking for attaching a screen shot of my design. So basically as seen in the design there are two sections in the right section you enter numbers and even a slight change in that number must reflect in the answer. In the left there again there are 2 compartments for tens and untits, tens coulumn has 9 sub-columns and units has 9 sub-columns. Difference between them will b in the images displayed in tens you will see a bunch of 10 of a certain object(in each sub-column) whereas in units you will find only a single object in each sub-column. Now with a slight change in the right colums there should be an instant change in the images displayed on the left. I want an effect like shown by the onforminput event in HTML5. But somehow this even aint working when I use it so I have to use onchange instead. This does not help much because it eliminates the counting part from the answer displayed which is very crucial. Change from addition1.jpg screen to addition2.jpg screen needs to very quick On Fri, Nov 19, 2010 at 5:15 PM, ColinFine <colin.f...@pace.com> wrote: On Nov 18, 4:14 am, clumsy7 <writetoamru...@gmail.com> wrote: > Hey guys I am creating an application to help teach kids basic math. > In my application the screen is divided in to 2 parts the right part > is to enter number, the left part is a dynamic visual representation > of whats happening on the right)the kid can enter values in the text > boxes on the right (initally the values in the 2 textboxes will be 0). > > My code is below and need help with it. Please help! > If you would care to give an indication of what it is that you need help with, you are more likely to get that help. Is something not working? (If so, what, and how?) Is there something you'd like to add to it but don't know how to make it work? What? -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com <mailto:prototype-scriptaculous%2bunsubscr...@googlegroups.com> . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.