title: Trouble with FixedHeader
body: <p>UPDATE: I talked to the author of FixedHeader, and it seems that it isn't going to work for me.  I think the problem is that my table is inside of a tab, which is causing some problems (see the screenshots in my other update), and he said that the current version of FixedHeader doesn't address these issues.  I've tried some other plugins and methods for fixed table headers, and they're all giving me similar problems.  I suspect it's because my table is inside of a tab.  If anyone has any easy solutions, please let me know.  Otherwise, don't worry about it.  I've got a lot of other stuff to work on for this website, and the fixed table header seems to be taking up too much time. </p>
  
  <p>I'm trying to use <a href="http://datatables.net/extras/fixedheader/" rel="nofollow noreferrer">FixedHeader</a> for <a href="http://www.collegeanswerz.com/colleges" rel="nofollow noreferrer">my website</a>.  </p>
  
  <p>I downloaded <a href="http://datatables.net/download/build/FixedHeader.js" rel="nofollow noreferrer">FixedHeader.js</a> and put it in <code>vendor/assets/javascripts</code>.  I have <code>//= require FixedHeader</code> in <code>application.js</code>.</p>
  
  <p>In <code>colleges.html.erb</code> I've set a class of <code>table-fixed-header</code> to each of my two tables, and have <code>&lt;%= javascript_include_tag :application %&gt;</code>.  In <code>colleges.js</code>, I've got <code>var oTable = $('.table-fixed-header').dataTable();
      new FixedHeader( oTable );</code>.</p>
  
  <p>In the development environment, when I go to inspect element > resources (in chrome), <code>FixedHeader.js</code> loads, but there's 2 problems with <code>colleges.js</code>: it says... </p>
  
  <pre><code>var oTable = $('.table-fixed-header').dataTable();  
  Uncaught TypeError: Object [object Object] has no method 'dataTable' (repeated 2 times)
  new FixedHeader( oTable );  
  </code></pre>
  
  <p>What can I do to get this to work? (Right now it doesn't work at all.)</p>
  
  <p>EDIT: I just messed around a little and didn't have success.  I tried <code>$.browser</code> instead of <code>jQuery.browser</code>, but that gave me the same 'msie' error.  Then I tried deleting that code altogether, and there were no javascript errors, but the fixed header didn't really work too well (the header started off at the top of my web page when it shouldn't, it wasn't sized properly etc.). </p>
  
  <p>UPDATE: Using the updated version (<a href="https://github.com/DataTables/FixedHeader/blob/master/js/FixedHeader.js" rel="nofollow noreferrer">https://github.com/DataTables/FixedHeader/blob/master/js/FixedHeader.js</a>) gets the header to appear at the top of the page before you click on the table link (it shouldn't appear yet, and it shouldn't be at the very top).  Also, it isn't sized the right way, and it doesn't have the sorting functionality.  See these links:<br>
  - <a href="http://awesomescreenshot.com/00d1pe963a" rel="nofollow noreferrer">http://awesomescreenshot.com/00d1pe963a</a><br>
  - <a href="http://awesomescreenshot.com/09e1pe9581" rel="nofollow noreferrer">http://awesomescreenshot.com/09e1pe9581</a><br>
  - <a href="http://awesomescreenshot.com/0d21pe9a2b" rel="nofollow noreferrer">http://awesomescreenshot.com/0d21pe9a2b</a></p>