JQuery Tablesorter in Orbeon Forms

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

JQuery Tablesorter in Orbeon Forms

Vlad
Hi ,

I'm trying to use JQuery Tablesorter library to sort rows in a table by columns values (clicking on a certain column).
I did this before , with PHP and HTML , so all the settings are correct . Does anybody know , are there any special settings to make it work with XForms/Orbeon Forms ?

First I was getting this error (in web developer toolbar , JS console):

Error: TypeError: table.config.parsers[c] is undefined
Source File: http://localhost:8080/orbeon/xforms-server/orbeon-e09b08dcfd7373e00861db4a9ba5cf9074d16324.js


Then I modified the JS code , to first check if table.config.parsers[c] exists/is set => I don't get the error anymore , but the table is still not sorted .

Thanks,
  Vlad
Reply | Threaded
Open this post in threaded view
|

Re: JQuery Tablesorter in Orbeon Forms

Erik Bruchez
Administrator
Mabye JQuery Tablesorter expects a particular HTML layout. Is your
table produced with xforms:repeat?

-Erik

On Sat, Aug 11, 2012 at 11:24 AM, Vlad <[hidden email]> wrote:

> Hi ,
>
> I'm trying to use JQuery Tablesorter library to sort rows in a table by
> columns values (clicking on a certain column).
> I did this before , with PHP and HTML , so all the settings are correct .
> Does anybody know , are there any special settings to make it work with
> XForms/Orbeon Forms ?
>
> First I was getting this error (in web developer toolbar , JS console):
>
> /Error: TypeError: table.config.parsers[c] is undefined
> Source File:
> http://localhost:8080/orbeon/xforms-server/orbeon-e09b08dcfd7373e00861db4a9ba5cf9074d16324.js/
>
> Then I modified the JS code , to first check if table.config.parsers[c]
> exists/is set => I don't get the error anymore , but the table is still not
> sorted .
>
> Thanks,
>   Vlad
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/JQuery-Tablesorter-in-Orbeon-Forms-tp4655620.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: JQuery Tablesorter in Orbeon Forms

Vlad
This post was updated on .
Yes , it is produced with xforms:repeat and it respects the HTML layout required by TableSorter : < thead > and < tbody > are defined , the structure is OK.
Here's my JS in < html >< head >... :

                < script type="text/javascript" src="/apps/appname/js/jquery-1.7.2.js" / >
                < script type="text/javascript" src="/apps/appname/js/__jquery.tablesorter/jquery.tablesorter.js" />
                < script type="text/javascript" >
                        $(document).ready(function()
                            {
                                $("#requests-display-table").tablesorter();
                            }
                        );
                < /script >