JQuery :: Tablesorter Plugin Order Columns?
Feb 17, 2011I using tablesorter but I have a problem:
[Code]...
If i order second column, order is not correct! How can I solve it? Can I use link attribut in table sorter?
I using tablesorter but I have a problem:
[Code]...
If i order second column, order is not correct! How can I solve it? Can I use link attribut in table sorter?
I've implemented tablesorter in my page using links to do the sorting rather than table headers. The reason being that the visible columns have the data in such a way that sorting on them is non-intuitive (the first column has both a job title and department title, so how to specify to sort on one or the other? I created hidden columns one for each data element and hid them).This works beautifully in Firefox and webkit browsers, but IE 7 and 8 are returning the following error when trying to sort on a hidden column that isn't the last column in the table. If I display a column, the sorting works fine on it, but hidden and not last, it errors. Changing the order of the hidden columns doesn't change the behavior, last column works and the other three error.Line: 552Error: 'undefined' is null or not an object.the line is referring to jquery.tablesorter.js here:
function setHeadersCss(table, $headers, list, css) {
// remove all header information
I'm using the tablesorter plugin and having a heck of a time creating a parser to sort a column of images. One of my columns can have one of three images whose HTML code is below:
<img src="/images/intensity_1.png" alt="Mild Intensity" />
<img src="/images/intensity_2.png" alt="Moderate Intensity" />
<img src="/images/intensity_3.png" alt="High Intensity" />
Now using the example of custom parsers from tablesorter's website, I attempted to create my own parser as seen below:
<script type="text/javascript" id="js">
// add parser through the tablesorter addParser method
$.rides.addParser({
// set a unique id
[Code]....
However this code does not work. Every other column is sortable so I know the script itself is working but the column with the images refuses to sort. I also tried using regex to change the images into a sortable number for the script to use but that did not seem to work either.
I've been working on getting a table with a super header and sub headers to only sort by the sub headers. The example at [URL] shows this is possible but everytime I try to run the code the items in the top row are used to sort columns starting with 0. I've tried two different versions of jquery and re-downloaded Tablesorter twice now. It seems as if this should be easy and I'm just missing some amazingly simple thing.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd"> <html>
<head>
[code]....
I found tablesorter plugin failed to sort the float if the float is in scientific notation? Eg. the tablesorter asc sorted result of float list is : [ 7e-06,4e-05,0.051116,0.00518,0.0].
View 3 Replies View RelatedI have a table, 10 cols, 200 rows. Using tablesorter causes a memory leak on every page refresh of almost 2mB. A smaller table causes a proportionately smaller memory leak. Is there way to clear this memory? I've tried setting inner html of the table to '', but it makes no difference. Is there even a universal method i can call to remove any trace of any jquery plugin I have on the page?
View 3 Replies View RelatedI was trying to get the tablesorter plugin working. I'm not working with flat data, but with database-data appended to a div by javascript. The tablesorter plugin is working with flat HTML data, but no with that dynamic data.
View 1 Replies View RelatedI'm trying to get a table like on Bob's site
So I downloaded Greg's tablefilter plugin and the tablesorter plugin like Bob says in his site. I then have this code...
I have to implement Tablesorter Pager plugin on Dynamic Table which will be cleared(emptied) out everytime. I triedby adding pager to [URL].. The sorting is working fine for first time but when i click on append url, the sorting is not working and the pager is skipping pages for large dataon subsequent clicks. I tried all the solutions ( appendCache, update,bind) but nothing seems to be solving the problem.
[Code]...
I am using the jQuery TableSorter plugin on a table that I have shaded. The table sorts successfully, but the shading is not refreshed when the table refreshes. How can I refresh the shading as well after the sort?
View 1 Replies View RelatedI have a xhtml jsf page that load anothers xhtml jsf pages that have, each page, 1 table with tablesorter enabled, when i load the first xhrml into the DIV the tablesorter works ok, when i load the next page the tablesorter od the page loaded before stops to work. In fact,after debugged the table sorter code, I found that the header.click() of the tablesorter loaded before is being called twice.
View 2 Replies View RelatedThe default sort (when clicking on any of the headers in the tablesorter table) is ascending. Now, I want to change that to descending for ALL columns, not just the initial sort column (defined in sortList). I've tried editing sortInitialOrder parameter in the .js itself, and nothing. I've tried adding it as a parameter in my html page when defining and assigning tablesorter, and nothing. What am I missing? And how do I accomplish this?
View 3 Replies View RelatedI am using Table sorter to sort the table. I need sort to work only if i click explicitly on header sort image, not on headers. I am using dynamic column width on headers and whenever the colum is resizing the table sorter is getting called unnecessarily because the click event is getting fired on the header. Do i need to change the $headers.click call in jquery.tablesorter.js page?
View 1 Replies View RelatedI am using Jquery and the tablesorter plugin to sort a table of information. Within the table i have a column of checkboxes. A user can check the boxes and press the submit button which will $_POST the checked boxes onto the next page. Everything works if i dont sort the table, but if i sort the table and then check a few boxes the $_POST array is empty.
View 1 Replies View RelatedI am using the columnize plugin v1.4 and jquery v1.3.2. My css for the column div, etc is as follows:
/*columnize code*/
#middlePeopleSection {float:left;width:585px;height:460px;max-height:300px;padding:0;margin:0;background:yellow;}
#columnSection{float:left;width:580px;height:460px;margin-right:1em;background:#990000;}
.column{margin-right:1em;}
.first,.last{clear:both;}
p.people {text-align:left;font-family:"Times New Roman",times,serif;padding:0;margin:0;margin-bottom:20px}
The link to my test file is [URL]. My objective is to have TWO columns of equal width. I want the first column to be full width with everything that doesn't fit into the first column flowing into the second column.
I'm using JQuery Tablesorter, and I would like to DISABLE Multi-column sorting option from tablesorter plugin.
View 2 Replies View RelatedI am using the tablesorter plugin and am experiencing the following problem:
Under several scenarios the up/down arrow icons will overlap with the text in a column's header. This occurs if the browser is resized so the table width is too narrow (e.g. plugin should force a min-width perhaps?).
More importantly, this will also occur when the text in a columns header is shorter than any of the values in the column the up/down icons overlap with the text in the column header.
I've attempted setting padding on the header columns but no success (probably because the up/down icons are set as background images and therefore have no impact on padding)
At the moment the plugin won't be usable for me since the arrorws overlap with the text in several columns.
My issue here is that the click event (edit) will work on page one but it won't when there's more than one page. What I need to do is add the click event to each page and I'm not sure where I need to accomplish this at.
Code:
<?php
// Include the database page
include ('../inc/dbconfig.php');
$query = "SELECT
[Code].....
I've been working with the Cycle plugin for a while, but the only problem I'm having is that if I pass a string of transition names (comma separated), the next button goes through them in the right order but the prev button does not use the previous transition as one would expect. It uses the next transition in the list given as input. I've looked around but I could only find people fixing it for scrolling horizontally. I want it to maintain the order of transitions passed as input, not a reverse animation effect.
View 3 Replies View RelatedI've been using the cycle plugin a lot lately (thanks a tonne,malsup!). I'm trying to write a wrapper plugin for the Cycle plugin that will allow me preload (more accurately, queue load) images for a banner slideshow. I've run into an issue with the cycle.addSlide function... it seems to be adding my slides out of order. Has anybody run into this before? what I'm trying to do: Each image is loaded individually, and once loaded they are added to the DOM via cycle.addSlide.
[Code]...
When a thead contain less columns than real columns in the tbody section, the Tablesorter plugin produces a variable not found error in jquery coreTo reproduce simply do not put all <th> in thead that correspond to columns in tbody.
View 1 Replies View RelatedI am using Ben Alman's JQuery resize plugin in order to obtain the varying computed width of an element when the window is resized (the element in question is a page wrapper that exhibits the expand-to-fit behavior of a block box, and it's computed width is obviously influenced by the resizing of the window. Essentially, what I need to be able to do, is to reference a variable that is defined in a .resize() function ('width_page') in a seperate .each() function.
[Code]...
I now understand that variables can't cross boundaries like in the example above, which leaves me a little stuck. I also understand that this is specific to the context of the .resize() function, and that it can't be taken out of it without using an element selector. Is there some way I can call the .resize() function in my .each() function?
I'm trying to get tablesorter working on my site, as per [URL]
Here's the page I'm working on: [URL]
I've included references to jquery-1.5.1.min.js and jquery.tablesorter.min.js in the page header, and uploaded the files to my site. I'm sure the references are OK, because if I use firefox web developer to view javascript it can find both of these.
I've included a script in the header to sort the table:
<script type="text/javascript">
$(document).ready(function()
{
$("#myTable").tablesorter();
[Code].....
The table has an id of "myTable" and is of class "tablesorter".
I've uploaded the css file, and again, I'm sure this is being located OK, because the table has the look and feel of a tablesorter class, and again web Developer is able to display the css correctly.
BUT, the icons aren't appearing, and the table is not sorting. I've put copies of the icons in root, in the same directory as the page and the same directory as the jquery files for good measure, but they're not being found. And no amount of clicking will sort the columns.
I use table sorter ( latest 2.0.5) and Jquery latest for sort table !
It works fine!
BUT! in some tables, I've link for open image in a light box !
On the first page, all works fine !
But, as soon as i set the second ( or more ) page in the table, the link work like a classic link, not like a "lightbox class" link !
I've try with fancybox => same !
with shadowbox => same !
and with lightbox => same !
So, the problem come from tablesorter or the pager !
I'm trying to get tablesorter [URL] working but pasting the example table, when the given document.ready() function fires, I get a javascript error saying that $ ("myTable").tablesorter(); is not a function. Can anyone confirm this works with Jquery 1.2.3?
View 1 Replies View RelatedThe tablesorter plug-in by Christian Bach has what I think are a couple of bugs/anomalies. 1) a column that starts with a zero is not identified as a 'digit'. I think it should be. 2) a column that starts with an IP address that looks like 192.168.1.1 or 1.127.77.1 -- that is any IP with a single digit is not identified as an IP address because the "is" function only looks for d{2,3} instead of d{1,3}. 3) some of the examples in the source code are wrong. Otherwise a great plug-in and worth the effort to debug.
View 1 Replies View Related