+ Reply to Thread
Page 12 of 15 FirstFirst ... 2 10 11 12 13 14 ... LastLast
Results 111 to 120 of 147

Thread: ANNOUNCE: TSTable() template, sortable/filterable table generator

  1. #111
    Join Date
    Aug 2007
    Posts
    87

    Default

    @Neilw: Thanks a lot! That's great and does exactly what I need. I like the second approach, but the first would work too (I tested both).

  2. #112

    Default Change "no data" message if no items found in search

    Hi,

    is it possible (although from looking at the source I'd say no ) to change the message that's shown when no items are found ("no data")? Maybe you could add an option for this in a later version. Basically I want to show the user a more detailled message of why nothing is shown in the table depending on where I use the table.

    And thx a lot for this template, it has been extremely useful so far...

  3. #113
    Join Date
    Mar 2008
    Posts
    1,630

    Default

    Quote Originally Posted by diebagger View Post
    s it possible (although from looking at the source I'd say no ) to change the message that's shown when no items are found ("no data")? Maybe you could add an option for this in a later version. Basically I want to show the user a more detailled message of why nothing is shown in the table depending on where I use the table.
    Added a "nodata" option to OPTIONS. Assign it the text you want to display if there are no data rows. Example:
    Code:
    tstable {
        options: { nodata:"Sorry, I have nothing to show you" },
        columns: [ "ID", "Name" ],
        data: []
    }
    Enjoy!

  4. #114

    Default

    Hello!

    I have strange problem with TSTable template behaviour. Firefox 3.6.12 (Win7 or Ubuntu) do not display sorting headers. But if I use Internet Explorer 8 - table is sortable. From the other hand tables in example http://developer.mindtouch.com/User:..._install_it.3f and tablesorter site http://tablesorter.com/docs/example-...sort-list.html works fine. Dekiwiki is running on Ubuntu 10.10 using virtual machine.
    Do somebody have same problem or know the solution?

  5. #115
    Join Date
    Mar 2008
    Posts
    1,630

    Default

    Quote Originally Posted by aldago View Post
    I have strange problem with TSTable template behaviour. Firefox 3.6.12 (Win7 or Ubuntu) do not display sorting headers. But if I use Internet Explorer 8 - table is sortable. From the other hand tables in example http://developer.mindtouch.com/User:..._install_it.3f and tablesorter site http://tablesorter.com/docs/example-...sort-list.html works fine. Dekiwiki is running on Ubuntu 10.10 using virtual machine.
    Do somebody have same problem or know the solution?
    Hmm, that is strange. I just upgraded my Firefox to 3.6.12 (Win7) and TStable is working fine. I can't think of what would cause FF to work on the MCP but fail on your wiki.

    However, it should be possible to figure it out, because if the sort headers aren't appearing then it probably means the Javascript is failing somewhere, and that should show up on the debug console. Have you installed Firebug? If not, do so, and go look in console and see what errors are popping up when you load your page in FF.

  6. #116

    Default

    Quote Originally Posted by neilw View Post
    Hmm, that is strange. I just upgraded my Firefox to 3.6.12 (Win7) and TStable is working fine. I can't think of what would cause FF to work on the MCP but fail on your wiki.

    However, it should be possible to figure it out, because if the sort headers aren't appearing then it probably means the Javascript is failing somewhere, and that should show up on the debug console. Have you installed Firebug? If not, do so, and go look in console and see what errors are popping up when you load your page in FF.
    Neilw, thank you for help. Seems like NoScript extension blocks something. I had try to turn off NoScript and tables become sortable.
    Unfortunately I not enough familiar with Firebug and debug process. So my conclusion is NoScript is root of problem.

  7. #117
    Join Date
    Mar 2008
    Posts
    1,630

    Default

    Aha. NoScript is a JavaScript blocker. It you go to the NoScript Options, click on "Whitelist", and add both your wiki site and the Mindtouch developer site (developer.mindtouch.com) to the list, things should start working again.

    Disabling NoScript will of course fix the problem, but since it's a pretty useful thing to have around it's better to try to get it all to work together.

    Note to self: always ask what browser extensions are installed!

  8. #118

    Default

    Quote Originally Posted by neilw View Post
    Aha. NoScript is a JavaScript blocker. It you go to the NoScript Options, click on "Whitelist", and add both your wiki site and the Mindtouch developer site (developer.mindtouch.com) to the list, things should start working again.

    Disabling NoScript will of course fix the problem, but since it's a pretty useful thing to have around it's better to try to get it all to work together.

    Note to self: always ask what browser extensions are installed!
    Neilw, I'm sorry. The strange thing is following - tables are not sortable even if dekiwiki site is in whitelist. NoScript blocks sorting script even in this case.

  9. #119

    Thumbs up

    Quote Originally Posted by neilw View Post
    Added a "nodata" option to OPTIONS. Assign it the text you want to display if there are no data rows. Example:
    Code:
    tstable {
        options: { nodata:"Sorry, I have nothing to show you" },
        columns: [ "ID", "Name" ],
        data: []
    }
    Enjoy!
    Hi neilw, thx for the (scary) fast reply...

    I've already updated the template and it's working perfectly.

    thx

  10. #120
    Join Date
    Mar 2008
    Posts
    1,630

    Default

    Quote Originally Posted by aldago View Post
    Neilw, I'm sorry. The strange thing is following - tables are not sortable even if dekiwiki site is in whitelist. NoScript blocks sorting script even in this case.
    Did you whitelist *both* your site and developer.mindtouch.com? You must. And that should be all that's needed; certainly worked for me when I tried installing NoScript on my machine.

    Ultimately, if it works without NoScript, then you just need to figure out which sites to allow. I've found that the latest NoScript (and maybe previous versions, dunno) asks me whenever a script is blocked, and makes it easy to keep "allow"ing until everything works.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts