6

I'm familiar with $get() and $find(). But, I've just stumbled across some code I need to work on that calls a function $create(). I can't find anything online or in the code explaining it. The slightly modified call is here:

$create(namespace.aspnetclass, {id: 'foo', groupId: <%= groupId %>}, 
    null, null, $get('divContainer'));

What is $create() supposed to do? Right now, it is doing nothing.

1 Answer 1

13

$create is a shortcut for the Sys.Component.create() method that is part of the MS Ajax Library and is used to create components (often referred to as controls and behaviours)

$create(type, properties, events, references, element);
1
  • 3
    As a side note - I'd recommend ASP.NET AJAX in Action as a good reference on the library. New edition in the works as we speak - manning.com/gallo2
    – Russ Cam
    Sep 21, 2009 at 16:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.