<?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: where to put javascript code in silverlight and how to incorporate it</title><link>http://forums.silverlight.net/forums/thread/230631.aspx</link><pubDate>Mon, 08 Jun 2009 17:27:18 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:230631</guid><dc:creator>davidezordan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/230631.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=16&amp;PostID=230631</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;read this article about &lt;a class="postheader taggedlink" href="http://pietschsoft.com/post/2008/06/19/Silverlight-and-JavaScript-Interop-Basics.aspx" target="_blank"&gt;Silverlight and JavaScript Interop Basics&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>where to put javascript code in silverlight and how to incorporate it</title><link>http://forums.silverlight.net/forums/thread/230623.aspx</link><pubDate>Mon, 08 Jun 2009 16:54:44 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:230623</guid><dc:creator>TheRekz</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/230623.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=16&amp;PostID=230623</wfw:commentRss><description>I have the following javascript code in my silverlight project, which is located inside a .js called Video.js. My question is that what should I do in my other files so that this java script code is used along with the application. More importantly I want the document.onmousemove to work. My goal here is so that I can open a popup window when the mouse is at a certain coordinate.. is the code correct? Please correct it if it&amp;#39;s wrong.


&lt;font face="Lucida Console" size="2"&gt;
var xCoor;
var yCoor;
 
 document.onmousemove = manageVideo;

 function manageVideo() {
    alert(&amp;quot;Hello World&amp;quot;);
    xCoor = window.event.clientX;
    yCoor = window.event.clienty;
    var elm = document.getElementById(&amp;quot;media&amp;quot;);
    var pop = document.getElementById(&amp;quot;popup&amp;quot;);
    
    if (xCoor == 100 &amp;amp;&amp;amp; yCoor == 100)
    {
        pop.isOpen = &amp;quot;true&amp;quot;
        document.body.style.cursor = &amp;#39;wait&amp;#39;
        elm.Visibility = &amp;quot;Visible&amp;quot;;
        elm.Play();
    }
    else{
        pop.isOpen = &amp;quot;false&amp;quot;
        document.body.style.cursor = &amp;#39;cursor&amp;#39;
        elm.Visibility = &amp;quot;Collapsed&amp;quot;;
        elm.Stop();
    }
}
&lt;/font&gt;</description></item></channel></rss>