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 6541919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:09:48+00:00 2026-05-25T11:09:48+00:00

I am trying to sort a table but I am calling the table from

  • 0

I am trying to sort a table but I am calling the table from a function and it seems that the table.js which is using this js http://www.techjive.net/wp-content/uploads/2009/02/jquerysortpage.js

I thought I would try to call that js file when the function gets called, but that did not work. so I included it in the index.php page to hopefully get it to work.

But when the function runs, it seems that it does not like that the table was not called from the very beginning of the .ready()
The function is below.

 function listallleads(){
    $("#menuarea").html('<table class="sortable paginated"><thead><tr><th class="sort-alpha"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Column 1</th></tr></thead><tbody><tr><td>Field 1</td></tr><tr><td>Field 3</td></tr><tr><td>Field 2</td></tr></tbody></table>');
}
  • 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-25T11:09:49+00:00Added an answer on May 25, 2026 at 11:09 am

    The plug-in you’re using is hard-coded to apply the sortable functions at document ready time. You’ve got two options:

    1. Modify the library to have an init function instead of (or in addition to) using document.ready and call it accordingly. Really, that would be a better architecture, but you may not want to start hacking away on the library, particularly if it’s being used elsewhere on your site.
    2. Instead of injecting the html into menuarea, have the table in a hidden div from the start, and make the button toggle its visibility.

    Hope that helps.

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

Sidebar

Related Questions

I've been trying to sort a table using ajax for sometime now but the
I am trying to sort all of this information into a small table which
I am trying to sort a list using delegates but I am getting a
I am trying to sort a table which has column like 2009-12-17 23:59:59.0 .
I'm trying to sort results from a CoreData table of Tracks in a similar
I am trying to reference a JavaScript file, containing a table sort function, in
I am trying to sort a static grid (made from HTML table) to sort
I'm using http://tablesorter.com/docs/ to try to sort a table. It works with a cosmetic
I'm trying to write Linq query on this Products table based on FacetTypes that
I am trying to sort a table based on the first value from smallest

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.