I'm using JQuery 1.6 and the latest tablesorter (sorttable) I can find. I have one page which does a
$("div#child_container").load(child_url);
where the page referenced by "child_url" has a sorttable in it.
In FireFox 8, this works exactly as you would hope. I have a sortable table embedded in a div.
In FireFox 3.5, it does not work. The column headings are not clickable. They're plain text. The zebra styling isn't happening, either, nor is the initial sort. Running FireBug shows that it loads the child_url (it loads the table of data, so this is confirmed) and it loads the sorttable.js file. There are no errors. Any warnings are CSS-related.
I can load the child_url on FireFox 3.5 and it will work exactly as you'd expect, so this doesn't appear to be a tablesorter issue per se. It seem to be an issue with doing a JQuery .load() to include a page which uses tablesorter.
I'm open to suggestions on how to proceed. Other than just saying "Sorry, but your browser is just too old and busted."
Edit: I've switched to jquery.tablesorter.js. Same issue.
Edit: I modded my child_url
page so that it didn't provide a doctype, head, etc. It just provided the <table>
and a <script>
block which would call $("#tablediv").tablesorter( ... )
on it. I promoted the .js file load to the parent page. That misbehaved, identically, on 3.5 and 8.0. I had a javascript error on the .tablesorter()
call, which I never had before.