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>