Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SharePoint > SharePoint 2010 > BOOK: Beginning SharePoint 2010 Development
|
BOOK: Beginning SharePoint 2010 Development
This is the forum to discuss the Wrox book Beginning SharePoint 2010 Development by Steve Fox; ISBN: 978-0-470-58463-7
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning SharePoint 2010 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 October 29th, 2010, 07:13 AM
Registered User
 
Join Date: Oct 2010
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Unhappy Silverlight BannerAdd not working in _starter_publishing.master

Hi

I have built BannerAd2.xap which works in VS2010 & browser preview. When I add to the code below to _start_publishing.master. I seem to get very confusing errors in the IE8 Dev Tools debugger .... references to unterminated string constants.?????. I am not using wrox_Page.master as this simply does not work in my environment.

Any ideas... or could someone upload a master page with this working so I could compare with the code below.

Regards

Daniel

HTML Code:
<asp:ContentPlaceHolder id="PlaceHolderUtilityContent" runat="server" >
	<div id="silverlightBannerAd" />
  <script language="JavaScript" type="text/javascript">
 	var s1DIV = document.getElementById('silverlightBannerAd');
	 s1DIV.appendChild(s1DIV);
 	 s1DIV.innerHTML = '<object data="data:application/x-silverlight," type="application/x-silverlight" width="400" height="800">
			 				<param name="source" value="http://intranet/sites/Wrox/XAPS/MyBannerAd2.xap" />
			 		   </object>';
 
 </script>

</div>

</asp:ContentPlaceHolder>

 
Old November 4th, 2010, 12:03 PM
Registered User
 
Join Date: Nov 2010
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default same here

I've have the same trouble also.
The master page provided by Author does not work, so I used a default.master instead.
I can't tell if the java code is the issue or the master page.
The java code looked odd because the SP Designer kept adding </div> in the end when I clicked save.
In the book example, it does not have the </div>

I'm getting a bit frustrated with this book. I can't believe people are given this book a good grade, had any of those people tried the examples in the book? There are a lot of issues.

Last edited by cchiang12; November 4th, 2010 at 12:05 PM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Report in SilverLight Gautham1986 Silverlight 2 2 October 31st, 2011 01:24 AM
Silverlight arnab-jit ASP.NET 3.5 Basics 3 September 6th, 2010 02:50 AM





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