I changed a couple of lines in this.isDigit....

I changed the expression...
var exp= '/(\0)|(^[+]?0(\.0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|
[1-9][0-9]*)\.([0-9]*)))$)|(^[-+]?[1-9]+[0-9]*\.0+$)/';

and did a replace on the commas....

return RegExp(exp).test($.trim(s.replace(/,/g,'')));


-K


On Aug 27, 4:11 pm, az <[EMAIL PROTECTED]> wrote:
> I like Mika Ha's workaround, but because of the nature of
> my templating system I didn't want anything table-specific
> in my jquery call.
>
> However, you can set the parser type within the table itself
> with metadata as outlined here:
>
> http://tablesorter.com/docs/example-meta-parsers.html
>
> NB:  You'll have to include the metadata plugin for this to
> work.  I grabbed it here:
>
> http://jqueryjs.googlecode.com/svn/tags/plugins/metadata/2.0/
>
> This, of course, still doesn't help with the thousand separator
> issue.
>
> az
>
> On Aug 27, 11:53 am, "Christian Fuentes" <[EMAIL PROTECTED]> wrote:
>
> > Sorry, but it didn't work for me, my problem is that the plugin doesn't
> > recognize the thousand separator (either point or comma).
>
> > 2008/8/26 Mike Ha <[EMAIL PROTECTED]>
>
> > > 1 possible solution:
>
> > > Define the column of the table as a digit:
>
> > >    $(function() {
> > >        $("table").tablesorter({
> > >            headers: {
> > >                5: {
> > >                    sorter:'digit'
> > >                }
> > >            }
> > >        });
> > >    });
>
> > > Where 5 is the column number from left to right (starts with 0).
>
> > > Enjoy
> > > Mike

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to