title: jquery plugin loaded but 'inaccesible' in WebControl
body: <p>I'm having trouble making a fixedTableHeader. I've found a jQuery plugin that works fine in simple test. But I need to include it as an embedded resource in a WebControl.</p>
  
  <p>So I'v registered the scripts in the Assembly.cs and set them to be 'embedded resources'</p>
  
  <p>In the WebControl they are registered like this:</p>
  
  <pre><code> this.Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "jquery",  Page.ClientScript.GetWebResourceUrl(this.GetType(), "LRGrid.jquery_min.js"));
  
   var fixedScript = Page.ClientScript.GetWebResourceUrl(this.GetType(), "LRGrid.jquery_fixedheadertable.js");
  
   this.Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "fixedheadertable", fixedScript);
  
   this.Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "jquery",  Page.ClientScript.GetWebResourceUrl(this.GetType(), "LRGrid.jquery.tablescroll.js"));
  </code></pre>
  
  <p>Then in order to call the script I do:</p>
  
  <pre><code>Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "SetTable" + ClientID, "; $(document).ready(function(){$('table#" + ClientID + "').fixedHeaderTable({ footer: false, cloneHeadToFoot: false, fixedColumn: false });});", true); 
  </code></pre>
  
  <p>Now if I test it in FireFox I get </p>
  
  <pre><code>.fixedTableHeader is not a function
  </code></pre>
  
  <p>IE9 tells me <code>method not supported</code></p>
  
  <p>I can use FireBug or IE Developer toolbar and see that the script IS loaded?!?!? Any ideas as to why it is not useable??</p>
  
  <p><strong>EDIT::</strong>
  Now I've tried to load the scripts directly in the markup - then it works as intended. But as soon as I try to load them using embedded resources it fails and won't recognize <code>fixedTableHeader</code> as a function</p>
  
  <pre><code>$(document).ready(function () { 
      if(jQuery.isFunction($('table#" + ClientID + "').fixedTableHeader)){
        $('table#" + ClientID + "').fixedTableHeader({ height:200, width:'100%' });
      }else{
        alert('unable to load scroll script');
      }
  });
  </code></pre>