On Nov 14, 7:03 pm, Namotco <[EMAIL PROTECTED]> wrote:
> Sorry, should be:
>
> eval("someVar=function() {     this.elm=$('outputs');    }; s=new
> someVar(); s.innerHTML='test';");

Omitting `var` is generally a bad idea. Either use `var` or assign to
a property directly (as in `window.foo = 'bar'`);

> alert($('outputs').innerHTML);
>
>  // not 'test'

I'm not sure what this is supposed to do. You create an object (via
`new`) with `elm` property (referencing some element) and then assign
'test' to `innerHTML` property of that object. Why? : )

--
kangax
--~--~---------~--~----~------------~-------~--~----~
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-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to