[Proto-Scripty] Gest sub divs?

2008-10-26 Thread Stefan
Hello, how can i get the subelements? i have something like this $('mydiv').$('mydiv2').$(mydiv3').innerHTML that dosent work. How can i get this values ? and how can i irretate all divs in a parent div? thanks for help --~--~-~--~~~---~--~~ You received

[Proto-Scripty] Re: Gest sub divs?

2008-10-26 Thread [EMAIL PROTECTED]
Hello, i use this structure $o .= div id=\entry\ class=\entry\ onclick=\setObjBackgroundColor(this,'#ff');;ui.copyObject(this,'EntryList','TargetList','noduplicate');\ onMouseOver=\setObjBackgroundColor(this,'#cc');\

[Proto-Scripty] writeAttribute and onclick fails in IE6

2008-10-26 Thread Cliff
Hi all, I have a button like this: a id=btn1some button/a This code works in safari and firefox, but fails in IE6: $ ('btn1').writeAttribute('onclick', alert(123)); The onclick event does not fire in IE6. What should I do? I know Event.observe is better, but I want to use variables to pass a

[Proto-Scripty] Re: send script type=javascript from php to client with ajax

2008-10-26 Thread trinkity
I SOLVED thanks artorius from forum.html.it in the php (server side) echo script type=text/javascript $('searchButton').observe('click', function search(){ alert('works!!!'); }

[Proto-Scripty] Re: writeAttribute and onclick fails in IE6

2008-10-26 Thread Cliff
$('btn1').observe('click', function() {   alert(123);   alert(321); }); That would be lovely, but all my methods live in a class. I need to pass variables to that class. Right now, I want to pass functions to that class. How can I do that? I only know how to pass functions inside a string,

[Proto-Scripty] Re: writeAttribute and onclick fails in IE6

2008-10-26 Thread kangax
On Oct 26, 3:00 pm, Cliff [EMAIL PROTECTED] wrote: $('btn1').observe('click', function() { alert(123); alert(321); }); That would be lovely, but all my methods live in a class. I need to pass variables to that class. Right now, I want to pass functions to that class. How can I do

[Proto-Scripty] Re: writeAttribute and onclick fails in IE6

2008-10-26 Thread Jonathan Rosenberg
Try $('btn1').writeAttribute('onclick', function () { alert(123); }); And you can still do what you want with observe, BTW. -- Jonathan Rosenberg Founder Executive Director Tabby's Place http://www.tabbysplace.org -Original Message- From: