request for something like this mod + datatables

abraamz

  • Freshman
  • Mmm! Wedge is beautifull!
  • Messages: 15
request for something like this mod + datatables
« le 24 Mai 2011 à 16:36 »
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

  • With a Box
  • As long as the planets are turning, as long as the stars are burning, as long as your dreams are coming true...
  • Messages: 13 597
Re: request for something like this mod + datatables
« Réponse #1, le 24 Mai 2011 à 18:18 »
Citation
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.
Citation
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.)
Citation
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.
Posté : 24 Mai 2011 à 16:45

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.


abraamz

  • Freshman
  • Mmm! Wedge is beautifull!
  • Messages: 15
Re: request for something like this mod + datatables
« Réponse #2, le 24 Mai 2011 à 20:18 »
Citation de Arantor le 24 Mai 2011 à 18:18
More accurately, all the files referenced get combined and compressed before being sent to the user.
Thats nice!!
Citation de Arantor le 24 Mai 2011 à 18:18
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?
Citation de Arantor le 24 Mai 2011 à 18:18
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

  • With a Box
  • If you say so.....
  • Messages: 12 893
Re: request for something like this mod + datatables
« Réponse #3, le 24 Mai 2011 à 23:34 »
Citation de Arantor le 24 Mai 2011 à 18:18
Citation
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 ;)
Citation
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.)
Citation
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.
...« I say wedge wedge (in the butt) »
 « Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)