MX components don't have access to the caller space so typically one has to do something like:

x = CreateObject("component", "x");
x.caller = caller;

so that the component can set variables in the caller space like this:

this.caller["whatever"] = true;

This all works fine from a cutom tag, however

x = CreateObject("component", "x");
x.caller = variables;

placed in the main page causes a stack overflow in MX.  The reason is that
however, the problem with this approach is that /variables/ contains /x/ so the assignment /x.caller = variables/ creates a circular reference.

is there a better way to handle this?  I need to be able to modify variables on the main page from a component.

- e
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to