title: javascript error: this.node is null or not an object
body: <p>I am working on ASP.NET 3.5, c#, visual studio 2010. I have made a master file and a default page that uses this master file. I have placed a couple <code>asp:contentplaceholders</code> in the master and corresponding code in the page that uses this master. I have also inserted JavaScript like this in the content page (and not the master):</p>
  
  <pre><code>&lt;asp:Content ID="Content6" ContentPlaceHolderID="Mainpage" Runat="Server"&gt;
  
  &lt;script src="path1" type="text/javascript"&gt;&lt;/script&gt;  
  &lt;script src="path2" type="text/javascript"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          var options = {
              //some java code
          };
  
          $(".mycssclass").effect(options);
      });
  &lt;/script&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>On running the website I get the following runtime error in visual studio:</p>
  
  <blockquote>
    <p>Microsoft JScript runtime error: 'this.node' is null or not an object</p>
  </blockquote>
  
  <p>and it point to some function inside the JavaScript like</p>
  
  <pre><code>this.node.onload=function(){..............//I am not a java guy so do not know much about this  
  </code></pre>
  
  <p>Where am I going wrong? Why does the site compile correctly but throw this runtime error? </p>
  
  <p>I also tried inserting this java code inside the master file in the <code>&lt;head&gt;</code>, but same error. This  is urgent please so if someone experienced can pinpoint where exactly to put the code that would be solve my problem quickly. </p>