Behaviors in Behaviors

Discussion in 'Javascript' started by Mark Kremers, Jul 31, 2003.

  1. Mark Kremers

    Mark Kremers Guest

    Hi group,

    I'm facing this problem.
    I've got a behavior which makes a kind of toolbar, except the buttons on it.
    Within this behavior i build
    an element, which contains a different behavior. So far so good. everything
    works fine. But when i'm trying to access a method in the second behavior,
    i'm getting this error about an object being null. How can i access this
    method?

    i'm using this kind of construction: toolbar.close.disable();
    where toolbar is the id of my first behavior, close is the id of the
    behavior inside the first one, and disable is a method in the second one....


    regards

    Mark Kremers
     
    Mark Kremers, Jul 31, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sylvain Munaut
    Replies:
    2
    Views:
    2,237
    Sylvain Munaut
    Dec 22, 2004
  2. VB Programmer
    Replies:
    3
    Views:
    380
    William F. Robertson, Jr.
    Jul 1, 2003
  3. Scupper

    DHTML Behaviors and ASP.NET

    Scupper, May 28, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    480
    Vidar Petursson
    May 28, 2004
  4. =?Utf-8?B?RGF2aWQgVGlsbWFu?=

    Slow ASP .NET app with DHTML behaviors

    =?Utf-8?B?RGF2aWQgVGlsbWFu?=, Aug 31, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    468
    Juan T. Llibre
    Aug 31, 2005
  5. Sheena
    Replies:
    1
    Views:
    407
    Harald Hein
    Oct 28, 2003
Loading...

Share This Page