View Single Post
  #1 (permalink)  
Old January 17th, 2014, 08:48 PM
eyadams eyadams is offline
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2014
Location: Los Angeles, CA
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 9 Problems

Page 230 has the following code:

var clientContext = context = new SP.ClientContext.get_current();

This won't work. Get rid of the "= context".

But this really is just the tip of the iceberg with the Javascript problems. SP 2013 does all JavaScript "on demand", and as a result just about everything has to be run asynchronously. Wrap everything in a function, and then put the function at the end of a call to SP.SOD.executeFunc(). I'll elaborate more if anyone is interested.
Reply With Quote