Wrox Programmer Forums
BOOK: Beginning SharePoint 2013 Development
This is the forum to discuss the Wrox book Beginning SharePoint 2013 Development by Steve Fox, Chris Johnson, Donovan Follette; ISBN: 978-1-1184-9584-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning SharePoint 2013 Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 17th, 2014, 08:48 PM
Registered User
Join Date: Jan 2014
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.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with chapter 1 macuser BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 2 April 2nd, 2009 12:39 PM
Chapter 6 problems slannesh7 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 August 15th, 2007 12:52 PM
Problems with Chapter 3 Steve887 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 12 January 18th, 2007 07:43 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.