Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Element Behaviors

0 views
Skip to first unread message

Kaz

unread,
Aug 7, 2006, 7:37:01 PM8/7/06
to
I created a sophisticated library of element behaviors for an intranet
application, the architecture of which I now have to modify. I'll try to
summarize it as concisely as possible.

The original architecture had a ListControl element behavior (and not DHTML
behavior...first class citizen of the document), that showed a context menu
when right-clicked on. The context menu itself is an element behavior (on the
containing document just like the List Control). The context menu has a
public method (declared as <PUBLIC:METHOD NAME="Init"/>) that is called from
the ListControl when requested. This worked perfectly fine until I changed
the architecture a little.

The new architecture gets rid of the ListControl behavior and renders the
entire (HTML) table on the server side. Consequently I had to move a lot of
script into a javascript include. Therefore, the javascript makes calls
directly off the main document.

The problem is this....I can access the Context Menu behavior's public
properties just fine in this new architecture, however, I cannot call the
public methods. My question is, if I can access public properties of an
element behavior, why can't I do the same for public methods? Why would it
work when being called from another element behavior?

I understand I need to provide code to get a good answer but I thought maybe
I am missing something very obvious. But if not please let me know I will be
more than happy to provide code.

Thanks much in advance.

0 new messages