Created
January 23, 2012 18:31
-
-
Save vman/1664699 to your computer and use it in GitHub Desktop.
JSCOM loadCOM in CS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loadCOM = () -> | |
context = new SP.ClientContext.get_current() | |
web = context.get_web() | |
context.load web | |
context.executeQueryAsync -> | |
#Success Callback | |
alert web.get_title() | |
, (sender,args)-> | |
#Failure CallBack | |
alert "Failed. #{args.get_message()} \n #{args.get_stackTrace()}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment