Topic on Extension talk:JSWikiGantt

Working with MediaWiki 1.20?

5
85.176.206.158 (talkcontribs)

Hello Nux,

I uploaded all files for JSWikiGantt and prepared a test-page with your code example, but nothing happens. Due to version page of my wiki JSWikiGantt is installed. I run MediaWiki 1.20, PHP 5.3.22 (cgi-fcgi).
As I can see in the source code of the test-page at least some script is included:

<script src="/cms/wiki/extensions/JSWikiGantt/jsgantt_inline.js?0"></script>

<script>

oJSGantInline.init()

oJSGant.AddTaskItem(new JSGantt.TaskItem(10, 'WCF Changes', , , '0000ff', 'http://your_bugzilla_domain.com/flyspray/index.php?do=details&task_id=10', 0, , 0, 1, 0, 1, , )) oJSGant.AddTaskItem(new JSGantt.TaskItem(20, 'Move to WCF from remoting', '2010-07-11', '2010-07-15', '0000ff', 'http://your_bugzilla_domain.com/flyspray/index.php?do=details&task_id=20', 0, 'Rich', 10, 0, 10, 1, , )) oJSGant.AddTaskItem(new JSGantt.TaskItem(30, 'add Auditing', '2010-07-19', '2010-07-21', '0000ff', 'http://your_bugzilla_domain.com/flyspray/index.php?do=details&task_id=30', 0, 'Mal', 50, 0, 10, 1, '20', )) oJSGantInline.draw(); </script>

I'm somewhat new to mediawiki, so I don't know what to do further or where to look up, what's going wrong. I also searched for other extensions doing the same, but your extensions seems to me the right one. Help would be very nice. Thanks a lot. Epic.

Nux (talkcontribs)

Personally I use older version of MediaWiki, but I've recently received a report that the extension works fine in MW 1.21. If you quoted this literally then there are apostrophes missing for some reason. This might be on PHP side. The JS code for the first task should be:

 (10, 'WCF Changes', '', '',..., 0, '', 0, ...))

Notice empty string after WCF Changes. The code responsible is in "JSWikiGantt.body.php" in "renderInnerXML". You can check if replacing single apostrophes with "\'" will help. I'm just guessing here because I'm not using PHP as fcgi which might have some weird defaults.

EDIT: I just noticed it's simply MediaWiki that replaces single quotes with italic font formatting in comments :-). So that might not be it... See if JS console of your browser is showing any errors. If it does you can post them here. If you have any public URL (or a page I could have a look at) then feel free to write to me.

I'm not visiting mw.org regularly so leave me a note on my talk page or send me an e-mail.

60.217.72.25 (talkcontribs)

Do you have the "JSWikiGantt.zip" file?

Nux (talkcontribs)

Sorry, I've moved some stuff on my site. Fixed the URL and made a proper redirect.

Reply to "Working with MediaWiki 1.20?"