JQuery :: Tablesorter Sorting Formatted Numbers (with Spaces)?

Jun 29, 2009

I'm using Tablesorter since few months and it was working very well.I did a small change yesterday in my php code: numbers over 1000 are nowformatted like this: 1 000, 1 000 000 instead of 1000 or 1000000.Since I did this change Tablesorter seems to have problems sorting this kindof formatted numbers with spaces. It just doesn't sort the way it should

View 1 Replies


ADVERTISEMENT

JQuery :: Tablesorter Not Properly Sorting On Numbers Having Unit Cm Appended?

Dec 9, 2011

i wonder if tablesorter does not properly parse the number of a table cell since it sorts a col of length values like this:

...
23 cm
115 cm
13 cm

May it be it takes only the very first digit into account? How to handle this without a core hack?

View 6 Replies View Related

JQuery :: Tablesorter - How To Use TextExtraction For Sorting

Jun 17, 2011

Assuming a structure like:
<table><thead><tr>
<th>Sample</th>
</tr></thead>
<tbody><tr>
<td><ul><li>25
<ul><li>Some Name</li>
</ul></li></ul>
</td></tr>
</tbody>
</table>

How can I use textExtraction to sort based on whatever number is in that first LI element? I have tried various things, but just can't seem to get it.
//Various forms of the below... trying to find the right path to the element.
textExtractionCustom: { 0: function(o) { return $('li','ul.serversgs',o).html(); } }
textExtraction: { 0: function(o) { return $('li','ul.serversgs',o).html(); } }

// This from within my own function called by whatever column I'm sorting by (0 above).
return
node.childNodes[0
].childNodes[0
].innerHTML;
Am I wrong and I cannot do this, even though the sample above is directly from the Tablesorter site as an example of bypassing HTML markup inside the TDs?

View 1 Replies View Related

JQuery :: Tablesorter Ip Address Sorting?

Nov 29, 2010

I'm using tablesorter in my app and it's working great except.. the ip address sorting seems to be slightly broken. It will sort on the first two groups fine, on the third group it tries to sort once and gets it wrong and on the last group it won't sort at all.bob

After a bit of debugging the issue is that an ip address is being detected as a digit, i.e 192.168.1.100 is detected as the number 192.168 and hence only sorting on the first two groups. I fixed this by moving the digit to the end of the parsers. This is not a proper fix but works for me. Secondly the parser needs to be changed as follows. Without the debug line obviously. It was limiting each group to 2 characters and only sorting the first two groups.

[Code]...

View 2 Replies View Related

JQuery :: Disable Column From Sorting In Tablesorter?

Jan 17, 2009

I have a table in which the first column is the row number (always from 1 at the top to 100 at the bottom) so no matter how the other columns are sorted that first column should be the 'rank' for that particular
sort. Is it possible to do this with tablesorter? Could I change the values in the first column after tablesorter did it's work? I see how to disable sorting on the first column but that is not what I want.

View 5 Replies View Related

JQuery :: Exclude A Table Row From The Sorting With Tablesorter?

Nov 17, 2010

I need to exclude a table row from the sorting with tablesorter.

View 4 Replies View Related

JQuery :: Tablesorter Not Correctly Sorting Money?

Sep 20, 2010

I have some vaules such as:

£90.00
£84.26
£83.07
£83.00
£82.50
£81.00
£80.00
£102.00
£101.00
£100.00

As you can see it's fine up to the point where I get into 100's as it seems to put them lower than the 90's.

View 1 Replies View Related

JQuery :: Disable Sorting On Specific Rows Using Tablesorter?

Apr 19, 2011

I have been using tablesorter2.0 plugin to sort the table. My requirement is such that I don't want few rows to be sorted. Like i can add a class like <tr class="nosort"> for rows to whom sorting should not be applied. And rest all rows should be sorted. Can't find a way to do this.

View 7 Replies View Related

JQuery :: Cannot Get Columns With Rowspan To Not Be Included In Sorting (Tablesorter 2.0)

Aug 21, 2009

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]....

View 2 Replies View Related

JQuery :: Tablesorter - Disable Sorting When Only Single Row In Table

Dec 16, 2011

I would like it very much if there was an option to have sorting disabled when there is only a single row in the table.

View 1 Replies View Related

JQuery :: Tablesorter Not Sorting Table Returned Via Ajax?

Oct 22, 2009

I have a div container that is used to specify where the table I retrieve via ajax is placed $("#div_reveal").html(AjaxResponse). I have tried to add an onSuccess function to update the table function (){ $("table").trigger("update"); } but the table does not sort. When I copy the output table directly into the page (static) it sorts. Therefore, I am assuming that the new table is not being added to the Dom and and is not being "recognized" by tablesorter. Does anyone know of a solution to retrieve and display a full html table via ajax and get tablesorter to sort it.

View 1 Replies View Related

JQuery :: Disable Multi-Column Sorting Option From Tablesorter Plugin

Sep 12, 2011

I'm using JQuery Tablesorter, and I would like to DISABLE Multi-column sorting option from tablesorter plugin.

View 2 Replies View Related

Sum Of An Array - Ignoring The Spaces Between Numbers?

Nov 9, 2010

I want to get the sum of all numbers in an text area irrespective of the spaces before between or after them. e.g. " 1 2 12 15 " =30

In the code below I can have multiple spaces or CR between numbers and it works giving me their sum But if i have a space before the first number or after the last number I get a NAN (

<html>
<head>
<title>Calc Numbers</title>

[code]....

View 3 Replies View Related

Sorting Numbers

Jun 13, 2007

I am tring to sort some six numbers..the problem is that it doesnt work when
I use "document.getElementById" instead of "document.write()
my program is supposed to write six numbers every second..line by line
Could you get it work ?

<html>
<body>
<script>
setInterval("sortN()",1000);

function sortN()
{
for(var m=1;m<=6;m++)
{
arr[m] = Math.floor(Math.random()*49)+1;
document.getElementById("kut").innerHTML+=arr.sort(sortN)+".."+"<br>";
} }
</script>
<div id="kut"></div>
<input type="button" value="baslat"onclick="sortN()">
</body>
</html>

View 8 Replies View Related

JQuery :: Testing For Error Condition In Returned JSON Formatted Data

Dec 14, 2010

I'm pretty new to jQuery and I'm using $.getJSON to submit some data to a PHP script which either returns 5 sets of json-formatted data or data to indicate an error condition (i.e., no data available) from the PHP database query. The callback routine handles the 5 sets of json-formatted data just fine (using $.each...) but I'm having trouble testing for either just a string with 'null' in it or a json-formatted data return of [{"error":"null"}].

My callback code for the second approach looks like this:
function handle_stores(data) {
if (data.error == "null") .....
But this test does not execute the following code for the 'true' condition, i.e., data.error == "null" never evaluates to 'true'.

View 1 Replies View Related

JQuery :: Validation Plugin's Date Method Doesn't Like Mm-dd-yyyy Formatted Dates?

Jul 14, 2009

I'm using this validation plugin alidation/and it is great.However, it rejects dates like 07-14-2009 as invalid. Is there someway to add a list of valid formats?If not, should I write my own method to match that particlar format?

View 1 Replies View Related

Formatted Form Results

Mar 27, 2006

I have an appointment form with NAME, DATE, TIME, LOCATION. I want to add another set of these same field fields if I have more than one appointment to enter so all appointments are subitted on one form.

I also want the results to be in a layout other than the generic HTML or text layout used by Frontpage. Hope this is clear enough. Don't know if this is possible.

View 4 Replies View Related

Manipulate JSON Formatted Data

Aug 9, 2010

The problem is that I'm trying to get value of a member item from JSON formatted string but it returns 'undefined'.

View 2 Replies View Related

Adding Formatted Text To Mouseover?

Nov 3, 2010

I am trying to create a mouseover (of an image)that generates text within <span> tags.The text is html formatted and could include images, links etc.Here is how I tried to code..

Code:
<a href="<?PHP echo $image;?>" onmouseover="document.getElementById('myText').firstChild.data = '<?PHP echo stripslashes($r2['description']);?>';return true;" title=""><img alt="<?PHP echo $r2['item_name'];?>" src="<?PHP echo $thumb;?>" height="" width="" class="last" /></a>

links are dynamic and come from a DB.Unfortunately the content in $r2['description'] is screwing up the mouseover code.

View 1 Replies View Related

Printing An Array To Screen As Formatted Javascript

Jul 20, 2005

I have a three tier nested array, used to define a map for a javascript
game, and can be edited within the web page. Is there a way I can
generate a visible copy of this array that I can then c&p into a file? I
think the best solution would be to write into a popup window (this
popup would be purely for map development use, so I don't feel worried
by popup blockers, as only myself would be seeing the popup). However, I
have no idea how to:

a) create the string in a form that a html parser can display as
ready-formatted javascript code

b) generate the popup

View 4 Replies View Related

Form Calculator With Financial Formatted Answer

Apr 14, 2009

I am working on a calculator page for a clients site. I am using dreamweaver and form calculator made by Kaosr as behavior / plugins in dreamweaver. The way I have it set up is first the user enters some numbers in boxes, clicks a get refund now button and a div element appears with the answer. The whole calculator works..but I cant get the answer to appear in currency format. I've found tons of applets for javascript that change it into currency format upon clicking a button or clicking elsewhere on the page.. but none that automatically will make a text box display currency when the answer appears..

View 1 Replies View Related

JQuery :: Parse Xml With Name Spaces?

Feb 27, 2011

I am trying to get two values from a web service response.

The web service was called using jquery $ajax:

$.ajax({
url : "http://localhost:3032/ufs/integration/copymoveTerm",
type : "POST",
dataType : "xml",

[Code]....

All I want to do is to get the values of UNDO_COUNT and MSG into separate variables.

Here is the jquery I am trying to use:

function undoSuccess(xmlData, status, xmlResponse)
{
$(xmlResponse).find('res:OUTPUT').each(function () {
var undoCount = $(this).attr('res:UNDO_COUNT).text();
var msg = $(this).attr('res:MSG).text();
});
}

I have tried it with and without the name space "res:". I have tried it with xmlData and with xmlResponse I have tried changing the web service so that UNDO_COUNT and MSG were elements in their own right or were attributes of OUTPUT all without success it just bypasses the initial find on OUTPUT.

View 5 Replies View Related

JQuery :: Can't Get Tablesorter Working

Mar 15, 2011

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.

View 1 Replies View Related

JQuery :: Tablesorter - And Lightbox ?

Dec 31, 2010

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 !

View 1 Replies View Related

JQuery :: Can't Get Tablesorter Working With Examples Under 1.2.3

Apr 30, 2009

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 Related

JQuery :: Plug-in Tablesorter Bug/anomalies?

Jun 3, 2009

The 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







Copyrights 2005-15 www.BigResource.com, All rights reserved