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