<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/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>Programming with JavaScript</title><link>http://forums.silverlight.net/forums/16.aspx</link><description>Discussions about programming Silverlight with JavaScript</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: How do I use onLoad?</title><link>http://forums.silverlight.net/forums/thread/2231.aspx</link><pubDate>Fri, 11 May 2007 19:42:01 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:2231</guid><dc:creator>WynApse</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/2231.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=16&amp;PostID=2231</wfw:commentRss><description>&lt;p&gt;Hi Bryant...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s why I wanted to use OnLoad in the manner I described. I&amp;#39;m not sure, but it sounds like just possibly I have a race condition on my hands because&amp;nbsp;if I load up all that createFromXaml during the&amp;nbsp;Canvas &amp;quot;Loaded&amp;quot;, I&amp;#39;m thinking I&amp;#39;m getting hammered by something.&lt;/p&gt;
&lt;p&gt;So if I just do the minimal I need to set some things up in the Canvas &amp;quot;Loaded&amp;quot;, and then do the heavy-lifting in the OnLoad... which is after the other... but I just had zero luck doing so.&lt;/p&gt;
&lt;p&gt;Like I said... it worked perfectly locally, but when I put it on my site, it acted like I&amp;#39;d left off the onLoad function... &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How do I use onLoad?</title><link>http://forums.silverlight.net/forums/thread/2220.aspx</link><pubDate>Fri, 11 May 2007 17:42:40 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:2220</guid><dc:creator>bryant</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/2220.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=16&amp;PostID=2220</wfw:commentRss><description>&lt;p&gt;Did you get this worked out? According to the SDK the onLoad is supposed to be called after all the loaded events fire in the xaml objects:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/bb412401.aspx#Using_the_OnLoad_Event"&gt;http://msdn2.microsoft.com/en-us/library/bb412401.aspx#Using_the_OnLoad_Event&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How do I use onLoad?</title><link>http://forums.silverlight.net/forums/thread/2144.aspx</link><pubDate>Fri, 11 May 2007 06:03:26 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:2144</guid><dc:creator>WynApse</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/2144.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=16&amp;PostID=2144</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m still having trouble with the GlyphMap demo: &lt;a href="http://www.wynapse.com/Silverlight/Silverlight_GlyphMap_Utility.aspx"&gt;http://www.wynapse.com/Silverlight/Silverlight_GlyphMap_Utility.aspx&lt;/a&gt;&amp;nbsp;particularly in Firefox, but sometimes in IE6.&lt;/p&gt;
&lt;p&gt;The issue is that the center content of all the Glyphs is not being loaded.&lt;/p&gt;
&lt;p&gt;In reading about using onLoad:somefunction ... I thought maybe I could split out the global variable instantiation from all the createFromXaml code and just do the inits in the xaml Loaded function and fill my grid &amp;#39;o&amp;#39; Glyphs in the onLoad ... and it worked locally, but yowzer... I could NOT figure out where to poke it to make it work from the web ... using IE7, too! ... forget Firefox... lots of errors there.&lt;/p&gt;
&lt;p&gt;So now I&amp;#39;ve restored it all to a &amp;#39;stable&amp;#39; position. it works fine in IE7, but Firefox isn&amp;#39;t displaying a thing and is givin gme &amp;quot;cyclic_proto_value&amp;quot; errors ...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So I guess I&amp;#39;m asking if I had the right idea about using onLoad, and if so, does someone have a good working example. I used the correct prototype for it according to the documentation, so I at least got that far. if I made it onLoad:onLoad and then had my function named onLoad, it complained it couldn&amp;#39;t find it... just confusing...&lt;/p&gt;
&lt;p&gt;Any help??&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;-Dave&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>