Two TinyTable in one page

Hi,

when I use 2 tinytable sorter in 1 page, run, but paginating and sort does'n work...

Is there a solution?

Thankyou
asked Apr 3, 2011 by anonymous

6 Answers

0 votes
Hi,

I tried with the new version V3 but seems doesn't work as the V2.

if I use the code you suggested (as I used to do with de V2) it's doesn't work

I've tryed to use syntax like this


var sorter = new TINY.table.sorter('sorter','table',{

    sorter.headclass:'head',

    sorter.ascclass:'asc',



end for senond table


var sorter2 = new TINY.table.sorter('sorter2','table2',{

    sorter2.headclass:'head',

    sorter2.ascclass:'asc',



Same thing for the searchBox and the pagination


<select id="columns" onChange="sorter.search('query')"></select>

...

<select onChange="sorter.size(this.value)">



and


<select id="columns" onChange="sorter2.search('query')"></select>

...

<select onChange="sorter2.size(this.value)">



I use different ID for each table

Even if I use a single table with the syntax

sorter.headclass:'head',


seems to not work at all

Can you help me?

Thanks for support!

Dex
answered Apr 3, 2011 by anonymous
0 votes
Hi,

I tried with the new version V3 but seems doesn't work as the V2.

if I use the code you suggested (as I used to do with de V2) it's doesn't work

I've tryed to use syntax like this


var sorter = new TINY.table.sorter('sorter','table',{

    sorter.headclass:'head',

    sorter.ascclass:'asc',



end for senond table


var sorter2 = new TINY.table.sorter('sorter2','table2',{

    sorter2.headclass:'head',

    sorter2.ascclass:'asc',



Same thing for the searchBox and the pagination


<select id="columns" onChange="sorter.search('query')"></select>

...

<select onChange="sorter.size(this.value)">



and


<select id="columns" onChange="sorter2.search('query')"></select>

...

<select onChange="sorter2.size(this.value)">



I use different ID for each table

Even if I use a single table with the syntax

sorter.headclass:'head',


seems to not work at all

Can you help me?

Thanks for support!

Dex

---------------------------------------------------

Responded in the thread you created.
answered Apr 3, 2011 by anonymous
0 votes
PERFECT!!!

thankyou so much! :P

You are not giving each instance a unique identifier like the following. Hope that helps.

var sorter = new TINY.table.sorter("sorter");

sorter.head = "head";

sorter.asc = "asc";

etc

var sorter2 = new TINY.table.sorter("sorter2");

sorter2.head = "head";

sorter2.asc = "asc";

etc


---------------------------------------------------
answered Apr 3, 2011 by anonymous
0 votes
You are not giving each instance a unique identifier like the following. Hope that helps.

var sorter = new TINY.table.sorter("sorter");

sorter.head = "head";

sorter.asc = "asc";

etc

var sorter2 = new TINY.table.sorter("sorter2");

sorter2.head = "head";

sorter2.asc = "asc";

etc
answered Apr 3, 2011 by anonymous
0 votes
Yes, this is the URL Thanks for support
answered Apr 3, 2011 by anonymous
0 votes
Do you have a link? It should work without any issues if all your IDs are unique and they are instantiated correctly.
answered Apr 3, 2011 by anonymous