[Proto-Scripty] Re: How to insert element with value taken from attribute of parent ?

2010-08-30 Thread elivol
name. FWIW. HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / comwww.crowdersoftware.com On Aug 29, 8:47 am, elivol eli...@gmail.com wrote: Hello Unfortunately  it doesn't work: $$('div.item_content').invoke('insert', {bottom: 'input type=checkbox class

[Proto-Scripty] Re: How to insert element with value taken from attribute of parent ?

2010-08-29 Thread elivol
get, so your checkboxes will   tell a story to your compare script! Walter On Aug 27, 2010, at 9:01 AM, elivol wrote: Hello. I have this HTML code: div class=item_content sale_num=12345some stuff/div div class=item_content sale_num=123456some stuff/div I need to insert a checkbox

[Proto-Scripty] How to insert element with value taken from attribute of parent ?

2010-08-27 Thread elivol
Hello. I have this HTML code: div class=item_content sale_num=12345some stuff/div div class=item_content sale_num=123456some stuff/div I need to insert a checkbox into div item_content with value of sale_num attribute. I'm trying to do it with: $$('div.item_content').invoke('insert', {bottom:

[Proto-Scripty] Add event by class name

2010-08-23 Thread elivol
Hello I have a problem with adding event click to elements by class name. I'm trying to add event onclick to all input tags that have class compare_itm by this code: $$('input.compare_itm').observe('click', myFunction); But it doesn't work. Is it possible to do in Prototype ? thanks -- You

[Proto-Scripty] Re: Add event by class name

2010-08-23 Thread elivol
://api.prototypejs.org/language/enumerable/prototype/invoke/ Hope this helps! Greets,  Johan On Mon, Aug 23, 2010 at 9:35 AM, elivol eli...@gmail.com wrote: Hello I have a problem with adding event click to elements by class name. I'm trying to add event onclick to all input tags that have