request for something like this mod + datatables

abraamz

  • Mmm! Wedge is beautifull!
  • Posts: 15
request for something like this mod + datatables
« on May 24th, 2011, 04:36 PM »
I just found about a great mod to post big tables. http://mods.simplemachines.org/index.php?mod=40
I think its really great if you need big tables in your forum. You can add values in cells separated by a custom character, or use csv.
It uses a javascript file so my question is:
In wedge any new javascript like from this mod is going to be automatically combined and added to existing javascript file?

I think i read that JQuery will be supported in wedge. In that case i have to suggest[1] datatables. DataTables is a plug-in for jQuery. Actually http://www.datatables.net could replace the sorting in BoardIndex, search in members and every other big searchable table in wedge. As admin i would very much apreciate the speed of that addon.
 1.  a new idea just hit me  :wow:

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: request for something like this mod + datatables
« Reply #1, on May 24th, 2011, 06:18 PM »
Quote
In wedge any new javascript like from this mod is going to be automatically combined and added to existing javascript file?
More accurately, all the files referenced get combined and compressed before being sent to the user.
Quote
As admin i would very much apreciate the speed of that addon.
64KB minified? That's a massive extra weight to the page load. (jQuery plus the rest of the JS is already about 100KB - and that's minified and partially gzipped as well. 64KB added on is no small matter.)
Quote
I think its really great if you need big tables in your forum. You can add values in cells separated by a custom character, or use csv.
There are better solutions than using CSV. Like making the editor better and able to support decent tables, like making the table, tr, and td tags styleable and not brain-dead in how the semantic rules are enforced.
Posted: May 24th, 2011, 04:45 PM

This might make a really nice add-on, but it's the sort of thing I'd strongly suspect we wouldn't put in the core.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

abraamz

  • Mmm! Wedge is beautifull!
  • Posts: 15
Re: request for something like this mod + datatables
« Reply #2, on May 24th, 2011, 08:18 PM »
Quote from Arantor on May 24th, 2011, 06:18 PM
More accurately, all the files referenced get combined and compressed before being sent to the user.
Thats nice!!
Quote from Arantor on May 24th, 2011, 06:18 PM
64KB minified? That's a massive extra weight to the page load. (jQuery plus the rest of the JS is already about 100KB - and that's minified and partially gzipped as well. 64KB added on is no small matter.)
I did not look at all that. 64% increace is too much for something many users or admins wont use. Could that be loaded only with topics or pages that actually have big tables?
Quote from Arantor on May 24th, 2011, 06:18 PM
This might make a really nice add-on, but it's the sort of thing I'd strongly suspect we wouldn't put in the core.
I found the mod recently and really liked it. Its not core stuff, but still had to ask. :blush:

Nao

  • Dadman with a boy
  • Posts: 16,063
Re: request for something like this mod + datatables
« Reply #3, on May 24th, 2011, 11:34 PM »
Quote from Arantor on May 24th, 2011, 06:18 PM
Quote
In wedge any new javascript like from this mod is going to be automatically combined and added to existing javascript file?
More accurately, all the files referenced get combined and compressed before being sent to the user.
As long as the modder sends them to Wedge correctly, of course.
Then again -- Wedge is configured by default to prevent loading files from the Themes/scripts folder, so I suppose modders would notice soon enough that they're doing something wrong ;)
Quote
64KB minified? That's a massive extra weight to the page load. (jQuery plus the rest of the JS is already about 100KB - and that's minified and partially gzipped as well. 64KB added on is no small matter.)
jQuery + script.js + theme.js = 35kb once minified and gzipped. (I remember it since I worked on it again today :P)
It used to be 32kb but we decided to switch from jQuery 1.4.4 to 1.5.2... (And I've only met problems ever since, ah well. I loved 1.4.4, it was smaller and it worked.)
Quote
This might make a really nice add-on, but it's the sort of thing I'd strongly suspect we wouldn't put in the core.
Same here.