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. Advertisements

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,438
    Sylvain Munaut
    Dec 22, 2004
  2. VB Programmer
    Replies:
    3
    Views:
    479
    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:
    565
    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:
    543
    Juan T. Llibre
    Aug 31, 2005
  5. Sheena
    Replies:
    1
    Views:
    497
    Harald Hein
    Oct 28, 2003
  6. Weng Tianxiang
    Replies:
    2
    Views:
    996
    Weng Tianxiang
    May 7, 2006
  7. Mark Denardo

    weird behaviors

    Mark Denardo, Sep 26, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    370
    Mark Denardo
    Sep 26, 2006
  8. William L. Bahn

    Are these behaviors defined?

    William L. Bahn, Aug 7, 2004, in forum: C Programming
    Replies:
    7
    Views:
    411
Loading...