Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6975453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:22:12+00:00 2026-05-27T17:22:12+00:00

I’m using JQuery 1.6 and the latest tablesorter (sorttable) I can find. I have

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:22:12+00:00Added an answer on May 27, 2026 at 5:22 pm

    First off, if there’s some way to credit Alfabravo, I’d do so. While his comment didn’t solve the problem completely, it put me on the right track.

    I stripped down the child_url page so that it ONLY provided a <table>. I pulled the jquery.tablesorter.js up to the parent page. I needed the parent page to execute .tablesorter() on the table.

    $("div#pending").load(
        "pending.jsp", 
        function() {
            $("table#pending_records").tablesorter( {
                sortList: [[4, 0]],
                widgets: ["zebra"]
            } );
        } 
    );
    

    JQuery.load() allows you to specify a URL to load AND a callback to execute when it’s completely loaded. That was the secret sauce needed to get past the Javascript error mentioned in my second edit.

    On another note: I was actually loading two sorttables in two different tabs using jquery.ui.tabs.js. The second tab wasn’t behaving either. That’s because sorttable doesn’t work if it’s in a block which is display: none. When the page loaded:

    • the first tab’s contents were visible, so the content there rendered
      properly
    • the second tab’s contents were hidden, so it was loading the
      content but .sorttable() wasn’t executing, so it didn’t render properly

    I was able to use a hack mentioned on the JQuery.load() doc page to get around that. Basically, tweak the stylesheet so that instead of:

    .ui-tabs .ui-tabs-hide { display: none; }
    

    it has:

    .ui-tabs .ui-tabs-hide { position: absolute; left: -10000px; }
    

    Since the frame containing the content is being “displayed” (albeit off the screen), .sorttable() works as you expect it to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I am reading a book about Javascript and jQuery and using one of the
I'm making a simple page using Google Maps API 3. My first. One marker
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a text area in my form which accepts all possible characters from
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Does anyone know how can I replace this 2 symbol below from the string
I have thousands of HTML files to process using Groovy/Java and I need to
link Im having trouble converting the html entites into html characters, (&# 8217;) i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.