Though it's not like I wished to write it, but it's very interesting
to know for other cases.
For now I've done it how Mislav Marohnić described.
Thank you all
PS: sorry again for the wrong list
On May 7, 3:57 pm, "Ryan Gahl" <[EMAIL PROTECTED]> wrote:
> Couple things (issues explained 1 by 1)
And also, as Mislav said, try to keep these types of questions limited to
the ruby spinoffs list - or some other general javascript help list.
(Sorry to perpetuate the thread on this list guys... just thought he could
use a bit more help)
On 5/7/07, Ryan Gahl <[EMAIL PROTECTED]> wrote:
>
> Couple
Couple things (issues explained 1 by 1)...
First, in your code here you are accessing the add object as a static object
on the class, when in fact it is a prototyped instance member. Meaning you
first need to create an instance of your class to get at .add...
var my_test_instance = new my_test();
Thank you, very interesting site.
On May 6, 4:45 pm, kangax <[EMAIL PROTECTED]> wrote:
> You can start with some of Doug Crockford's must-read articles
> athttp://javascript.crockford.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribe
You can start with some of Doug Crockford's must-read articles at
http://javascript.crockford.com/
On May 6, 6:07 am, Christoph Roeder <[EMAIL PROTECTED]> wrote:
> On May 6, 11:58 am, "Mislav Marohnić" <[EMAIL PROTECTED]>
> wrote:
>
> > I suggest you drop these complex constructs (add.txt.foo.b
On May 6, 11:58 am, "Mislav Marohnić" <[EMAIL PROTECTED]>
wrote:
> I suggest you drop these complex constructs (add.txt.foo.bar) until you
> learn more about JavaScript.
Can you please give me some keywords or links to sites with such
"advanced" topics?
Thanks
--~--~-~--~~-
On 5/6/07, Christoph Roeder <[EMAIL PROTECTED]> wrote:
>
>
> Is this what I try possible, maybe with Prototypes "bind"?
You can only bind to one specific object. Since your methods are instance
methods of some class they need to refer to the current object instance with
the "this" keyword, and th
Thanks, but one last question:
Is this what I try possible, maybe with Prototypes "bind"?
On May 6, 12:33 am, "Mislav Marohnić" <[EMAIL PROTECTED]>
wrote:
> On 5/6/07, Christoph Roeder <[EMAIL PROTECTED]> wrote:
>
>
>
> > add: {
> > txt: function(){
> > console.log(this.t
On 5/6/07, Christoph Roeder <[EMAIL PROTECTED]> wrote:
>
>
> add: {
> txt: function(){
> console.log(this.textarea);
> }
> }
>
"this" keyword inside the txt() function refers to the object contained in
"add", not the my_test class like you wanted. Try this inste