Wrox Programmer Forums
|
BOOK: Professional ASP.NET MVC 5
This is the forum to discuss the Wrox book Professional ASP.NET MVC 5 by Jon Galloway, Brad Wilson, K. Scott Allen, David Matson; ISBN: 978-1-118-79475-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 5 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 May 19th, 2016, 12:26 PM
Authorized User
 
Join Date: Jan 2013
Posts: 23
Thanks: 1
Thanked 1 Time in 1 Post
Default Chapter 3 Page 74 Partial View

Using the code downloaded from NuGet threw an error because $ was not defined. To solve this I added a script tag to PartialViewDemo.html, so my file is now
Code:
<div id="result"></div>
<script src="~/Scripts/jquery-1.10.2.js"></script>
<script type="text/javascript">
    $(function () {
        $('#result').load('/sample/message');
    });
</script>
Which makes it work!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Implementing the "Index" view Template (Ch1 page 51 figure 1-74) lagonave BOOK: Professional ASP.NET MVC 2 3 December 2nd, 2010 11:37 AM
Page 73-74 inconsitance varible names Patrick Cambria BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1 0 January 26th, 2009 06:47 AM
chapter 3.0 try it out page 74 rat BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 5 August 3rd, 2006 01:51 PM
Chapter 1 page 74 dryan BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 June 16th, 2004 02:16 PM





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