title: javascript method not found 'Method Name' is undefined
body: <p>I've implemented a simple <code>JQuery.GetJSON</code> method on the click of an <code>&lt;img&gt;</code> tag. The problem is that Internet explorer is throwing exception that methodname is undefined.</p>
  
  <p>Can anybody guide me on this.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class="itemgenerate"&gt;
      &lt;img src="/images/generate.png" onclick="sendJSONRequest()" style="cursor: pointer;" /&gt;
  &lt;/div&gt;
  &lt;div id="divTarget" class="itemtext"&gt;
      &lt;p id="pStuff"&gt;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Java Script:</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript" src="/Scripts/jquery-1.4.1.js" /&gt;
  &lt;script language="javascript" type="text/javascript"&gt;
      function sendJSONRequest() {
          $.getJSON("/Home/Generate", $('#text1').val(), function (data) {
              $('#pStuff').text(data.Stuff);
          });
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>Please if anybody can explain me what is wrong here:</p>