<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Piotr Puszkiewicz's Silverlight Blog - All Comments</title><link>http://blogs.msdn.com/b/piotrp/</link><description /><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Structure of the Silverlight Object Tag</title><link>http://blogs.msdn.com/b/piotrp/archive/2008/06/24/structure-of-the-silverlight-object-tag.aspx#9056908</link><pubDate>Mon, 10 Nov 2008 09:13:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9056908</guid><dc:creator>sharkboy</dc:creator><description>&lt;p&gt;I am finding that Silverlight is still a bit buggy. It seems that it not living up to it's cross browser pledge.&lt;/p&gt;
&lt;p&gt;I for one hate sites that try and use an RIA such as flash for the whole page. In most cases the user experience is just bad. What I like to do is mix it up and use Silverlight to do only what can't be done any other way.&lt;/p&gt;
&lt;p&gt;So, I have a media player set up so a user will click a link that calls a JavaScript function such as Play(123) where 123 is the ID of a song.&lt;/p&gt;
&lt;p&gt;My silverlight control calls a web service that gets the URL of a the media file and a bunch of meta data. All works fine on IE and Safari but I get a Media Error on Firefox.&lt;/p&gt;
&lt;p&gt;I am not sure what I am doing wrong but I should get a consistent behavior and I am not.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9056908" width="1" height="1"&gt;</description></item><item><title>re: What's new in the Silverlight 2 Beta 2 SDK's Silverlight.js file?</title><link>http://blogs.msdn.com/b/piotrp/archive/2008/06/25/what-s-new-in-the-silverlight-2-beta-2-sdk-s-silverlight-js-file.aspx#8967665</link><pubDate>Sat, 27 Sep 2008 20:31:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8967665</guid><dc:creator>grisjuan</dc:creator><description>&lt;p&gt;It's not a 'real' app ... I was just studying the installation experience. I'll redo the whole app from scratch now that an RTW is available and I'll report back in a couple of weeks.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8967665" width="1" height="1"&gt;</description></item><item><title>When Silverlight 2 Releases, Will You be Ready?</title><link>http://blogs.msdn.com/b/piotrp/archive/2008/06/23/instantiating-silverlight-html-vs-script.aspx#8962823</link><pubDate>Wed, 24 Sep 2008 01:38:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8962823</guid><dc:creator>Matt Powell</dc:creator><description>&lt;p&gt;Silverlight 2 Beta 2 has been out since June 6th and the number of sites that have taken advantage of&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8962823" width="1" height="1"&gt;</description></item><item><title>When Silverlight 2 Releases, Will You be Ready?</title><link>http://blogs.msdn.com/b/piotrp/archive/2008/06/24/structure-of-the-silverlight-object-tag.aspx#8962822</link><pubDate>Wed, 24 Sep 2008 01:38:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8962822</guid><dc:creator>Matt Powell</dc:creator><description>&lt;p&gt;Silverlight 2 Beta 2 has been out since June 6th and the number of sites that have taken advantage of&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8962822" width="1" height="1"&gt;</description></item><item><title>re: What's new in the Silverlight 2 Beta 2 SDK's Silverlight.js file?</title><link>http://blogs.msdn.com/b/piotrp/archive/2008/06/25/what-s-new-in-the-silverlight-2-beta-2-sdk-s-silverlight-js-file.aspx#8955709</link><pubDate>Wed, 17 Sep 2008 18:52:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8955709</guid><dc:creator>PiotrP</dc:creator><description>&lt;p&gt;grisjuan, can you share a pointer to your app? I would like to take a closer look at what is going wrong.&lt;/p&gt;
&lt;p&gt;Piotr&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8955709" width="1" height="1"&gt;</description></item><item><title>re: What's new in the Silverlight 2 Beta 2 SDK's Silverlight.js file?</title><link>http://blogs.msdn.com/b/piotrp/archive/2008/06/25/what-s-new-in-the-silverlight-2-beta-2-sdk-s-silverlight-js-file.aspx#8883320</link><pubDate>Thu, 21 Aug 2008 06:55:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8883320</guid><dc:creator>grisjuan</dc:creator><description>&lt;p&gt;My code is below. It would be cool to be able to remove the last line where I call reload, but I couldn't get it to work in FireFox 3, the app would not start automatically without it.&lt;/p&gt;
&lt;p&gt;In my testing, I went to &amp;quot;Programs and Features&amp;quot; and uninstalled the plugin before each attempt, so it should not have been an 'upgrade' scenario.&lt;/p&gt;
&lt;p&gt;Thanks for your suggestions so far, your posts on this have been really helpful!&lt;/p&gt;
&lt;p&gt;Silverlight.onSilverlightInstalled = function()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp;var div = document.getElementById(&amp;quot;host&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp;div.innerHTML = &amp;quot;&amp;lt;p&amp;gt;Install successful...&amp;lt;/p&amp;gt;&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;setTimeout(load, 3000);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;function load()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp;var parent = document.getElementById(&amp;quot;host&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Silverlight.createObject&lt;/p&gt;
&lt;p&gt; &amp;nbsp;(&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;quot;Card.xap&amp;quot;, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// source&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;parent, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// parent&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;quot;silverlightControl&amp;quot;, &amp;nbsp;// id of new app&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{ version: &amp;quot;2.0&amp;quot; }, &amp;nbsp; &amp;nbsp;// properties&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;null, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// events&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;null, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// initParams&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;null &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // context&lt;/p&gt;
&lt;p&gt; &amp;nbsp; );&lt;/p&gt;
&lt;p&gt; &amp;nbsp;window.location.reload(false); // needed to add this for FireFox&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8883320" width="1" height="1"&gt;</description></item><item><title>re: What's new in the Silverlight 2 Beta 2 SDK's Silverlight.js file?</title><link>http://blogs.msdn.com/b/piotrp/archive/2008/06/25/what-s-new-in-the-silverlight-2-beta-2-sdk-s-silverlight-js-file.aspx#8841473</link><pubDate>Thu, 07 Aug 2008 21:49:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8841473</guid><dc:creator>PiotrP</dc:creator><description>&lt;p&gt;GRISJUAN,&lt;/p&gt;
&lt;p&gt; The refresh should not be required in any browser, assuming that the user does not have a previous version of Silverlight installed. You can overwrite the value of Silverlight.onSilverlightInstalled &amp;nbsp;with a new function that injects the object tag for you. This way, you can use the detection logic in Silverlight.js and still get the injection behavior you are looking for. &lt;/p&gt;
&lt;p&gt;You should also examine the value of Silverlight.isBrowserRestartRequired. If a user is doing an upgrade then they will need to restart their browser before using the newer control. The recommendation for this scenario is to wait for the user to click the installation link. Once they do, replace your installation prompt with something like &amp;quot;Thanks for upgrading Silverlight. When installation is complete, please restart your browser and come back to &amp;lt;YOUR URL&amp;gt;.&amp;quot; This way the user understands what is going on every step of the way.&lt;/p&gt;
&lt;p&gt;As to the Firefox Save/Cancel dialog, that user experience is outside of your site's control. However, a Firefox user is likely to be comfortable with the Firefox experience around downloads and therefore should not have problems with finding and running the installer.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt; Piotr&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8841473" width="1" height="1"&gt;</description></item><item><title>re: What's new in the Silverlight 2 Beta 2 SDK's Silverlight.js file?</title><link>http://blogs.msdn.com/b/piotrp/archive/2008/06/25/what-s-new-in-the-silverlight-2-beta-2-sdk-s-silverlight-js-file.aspx#8793999</link><pubDate>Thu, 31 Jul 2008 21:00:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8793999</guid><dc:creator>grisjuan</dc:creator><description>&lt;p&gt;I'm working on the &amp;quot;guided install&amp;quot; you suggest (and your post is very helpful, thanks).&lt;/p&gt;
&lt;p&gt;I basically have it working in IE7 and FF3 now. One question: in Firefox 3, when I call getSilverlight the only options Firefox gives the user are &amp;quot;Save&amp;quot; and &amp;quot;Cancel&amp;quot; so the user has manually to go to their Downloads directory and run the .exe. After the install when I inject the object tag into the div, I still need to refresh the page (refresh isn't needed in IE7). Does that sound right?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8793999" width="1" height="1"&gt;</description></item><item><title>re: Firefox 3 support added to Silverlight 2 Beta 2 SDK's Silverlight.js</title><link>http://blogs.msdn.com/b/piotrp/archive/2008/06/19/firefox-3-support-added-to-silverlight-2-beta-2-sdk-s-silverlight-js.aspx#8699434</link><pubDate>Mon, 07 Jul 2008 04:09:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8699434</guid><dc:creator>MSDNArchive</dc:creator><description>&lt;p&gt;As per my comment on another post, it sounds like the object tag is what I want to use instead of Silverlight.js for my Silverlight 2 sites :0&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8699434" width="1" height="1"&gt;</description></item><item><title>re: Silverlight.js available on MSDN Code Gallery</title><link>http://blogs.msdn.com/b/piotrp/archive/2008/07/03/silverlight-js-available-on-msdn-code-gallery.aspx#8699426</link><pubDate>Mon, 07 Jul 2008 04:08:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8699426</guid><dc:creator>MSDNArchive</dc:creator><description>&lt;p&gt;Nevermind, it soujnds like the object tag is the way I want to go as per your explanation in this post.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/piotrp/archive/2008/06/23/instantiating-silverlight-html-vs-script.aspx#comments"&gt;http://blogs.msdn.com/piotrp/archive/2008/06/23/instantiating-silverlight-html-vs-script.aspx#comments&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks, Piotr!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8699426" width="1" height="1"&gt;</description></item></channel></rss>