Ok!! I got it thanks to Ludovic! A javascript error had prevented me from seeing the
incredible, awesomeness of this extension!!
1) the splice threw an error because the object wasn't an array, it was an
HTMLCollection.
2) I had "stats" tables on the side of my page which through off the
tables.length count mismatch.
Both in the gotTables() function
I changed the argument "tables" to "tabels" and then did an
Array.prototype.slice.call on tabels to convert it to an array.
Then, I checked the table's class for the value of 'stats', which in my
particular instance, fixed my problem. Someone else may have a different table name in the
panels on the side.
So it kind of looks like this, only the bold parts matter (I changed my own js for loop):
var gotTables = function(tabels, tablesFromWikiText, wikiText)
{
var tables = Array.prototype.slice.call(tabels);
for (var i = tables.length-1; i > -1; i--) {
if (tables[i].getAttribute('class') == 'xwiki-livetable' ||
tables[i].getAttribute('class') == 'stats') {
tables.splice(i, 1);
}
________________________________
From: Ludovic Dubost <ludovic(a)xwiki.com>
To: Dan Jones <poppakap(a)yahoo.com>
Cc: XWiki Users <users(a)xwiki.org>rg>; XWiki Developers <devs(a)xwiki.org>
Sent: Thursday, January 10, 2013 4:40 PM
Subject: Re: [xwiki-devs] [ANN] XWiki.TableEdit extension now available for your
ExtensionManager installing pleasure.
You can go to the sandbox to see a table and should see an edit button next to the table.
The code is in macro xwiki objects
Le jeudi 10 janvier 2013, Dan Jones a écrit :
I imported the xar, and it created the page with two attachments...
But I don't see any tables that can be edited. The page it created contained no actual
velocity scripts or anything.
What did I do wrong?
________________________________
From: Ludovic Dubost <ludovic(a)xwiki.com>
To: XWiki Developers <devs(a)xwiki.org>
Cc: XWiki Users <users(a)xwiki.org>
Sent: Wednesday, January 9, 2013 4:15 AM
Subject: Re: [xwiki-users] [xwiki-devs] [ANN] XWiki.TableEdit extension now available for
your ExtensionManager installing pleasure.
Hi Caleb,
Great stuff. I just tried it out. Installation was immediate.
I found one issue with multilingual. Although my wiki was in mono-lingual
and french, it retrieved the english version of the sandbox document. This
might be a REST issue.
Another issue but is probably a feature for now is that I was not able to
do calculations in the spreadsheet. I tested on Chrome.
Ludovic
2013/1/9 Caleb James DeLisle <calebdelisle(a)lavabit.com>
> Hi all,
>
> I'm proud to announce that after a few weeks of hectic downtime I finally
> got XWiki.TableEdit extension finished. XWiki.TableEdit allows you to edit
> wiki tables as if they were spreadsheets using the jquery.sheet in-browser
> spreadsheet editor.
>
> Internally XWiki.TableEdit is an exiting foray into a new frontier
of
> modular
> javascript, relying entirely on Asynchronous Modular Definition to load
> it's
> component parts. (
https://github.com/amdjs/amdjs-api/wiki/AMD )
>
> XWiki.TableEdit is still in it's infancy, future plans include editing of
> spreadsheets in attachments, conversion of the loading and saving APIs to
> the
> simple REST-like JIO standard (
http://www.j-io.org/ ) so that others can
> more
> easily develop similar editors, and porting the entire widget from painful
> hand written javascript to simple HTML5 based on renderjs
> (
http://www.renderjs.org/ ) which can be installed in other frameworks.
>
> More information about the extension:
>
>
http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki+TableEdit
>
> I'd love to hear your feedback, especially
browsers where it doesn't
work.
xwiki-contrib
JIRA project coming soon..
Thanks,
Caleb
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Ludovic Dubost
Founder and CEO
Blog:
http://blog.ludovic.org/
XWiki:
http://www.xwiki.com
Skype: ldubost GTalk: ldubost
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Sent from Mobile