Namespace is undefined

Last post 03-03-2008 9:18 PM by bmains. 2 replies.

Sort Posts:

  • Namespace is undefined

    02-29-2008, 8:56 PM
    • All-Star
      27,996 point All-Star
    • bmains
    • Member since 10-22-2004, 8:20 AM
    • Posts 5,646

    When the program runs, an IScriptControl control generates this: 

    $create(Nucleo.Web.ListControls.ClientCheckboxListBehavior, {"activeIndex":-1,"selectedIndex":-1}, {"allItemsSelected":ClientCheckboxListTest_AllItemsSelected,"noItemsSelected":ClientCheckboxListTest_NoItemsSelected}, null, $get("ctl00_ContentPlaceHolder1_ClientCheckboxListTest1_extItems"));

    However, it's telling me that Nucleo is undefined.  I register the namespace in the associated script, and register the class at the end.  So I don't understand why it is giving me this error?

    Thanks. 

     

    Brian

    "Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
  • Re: Namespace is undefined

    03-01-2008, 12:32 PM
    • Contributor
      7,416 point Contributor
    • Garbin
    • Member since 09-17-2004, 12:35 PM
    • Sassari, Italy
    • Posts 1,506
    • ASPInsiders
      TrustedFriends-MVPs

    Hi,

    did you check that the script is effectively loaded? 

    Alessandro Gallo | Blog | My book: ASP.NET AJAX In Action
  • Re: Namespace is undefined

    03-03-2008, 9:18 PM
    Answer
    • All-Star
      27,996 point All-Star
    • bmains
    • Member since 10-22-2004, 8:20 AM
    • Posts 5,646

    Hey,

    Hmm... No, no I did not.  I really dropped the ball on that; I forgot the registerClass statement, and didn't add it as a resource, but was trying to load it as a resource.  Thanks for pointing me in the right direction.

    Brian

    "Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
Page 1 of 1 (3 items)