[jQuery] Re: Is there a standard way for a child object to reference a parent object?

2007-05-07 Thread Daemach
Thanks all On May 6, 6:58 pm, Karl Rudd [EMAIL PROTECTED] wrote: The short answer is no. JavaScript doesn't have a built in idea of any sort of class hierachy. The method you talked about (passing in a reference) is one of the simplest (and probably easiest) ways to get hierachy/nesting

[jQuery] Re: Is there a standard way for a child object to reference a parent object?

2007-05-06 Thread nick name
Hey, I just started using jquery so not to sure, however I use Base.js http://dean.edwards.name/weblog/2006/03/base/ It gives alot of oo features and solves your issue above. To do it in jquery I'II have to do some more reading Hopes this helps On May 7, 8:19 am, Daemach [EMAIL PROTECTED]

[jQuery] Re: Is there a standard way for a child object to reference a parent object?

2007-05-06 Thread Daemach
This is more of a base javascript question - it's not specific to jQuery. In the HTML DOM, if I'm inside an iframe this refers to the local window and I can refer to my parent using parent. I just want to know if there is something similar for functions running inside of objects that are

[jQuery] Re: Is there a standard way for a child object to reference a parent object?

2007-05-06 Thread Karl Rudd
The short answer is no. JavaScript doesn't have a built in idea of any sort of class hierachy. The method you talked about (passing in a reference) is one of the simplest (and probably easiest) ways to get hierachy/nesting into JavaScript. What marks is pointing too is a library that allows