I'm not expecting much by filing this issue as I know that timeline-api.js is maintained by another party. I did want to mention it, though, in case it might help.

I got this JavaScript error with both the CVS version and Arto's contrib: Caught exception: SyntaxError: missing ) in parenthetical

There aren't any other errors (in the JavaScript console). I've attached a cropped screenshot of what is finally rendered.

CommentFileSizeAuthor
timeline.png11.02 KBChristefano-oldaccount

Comments

Arto’s picture

Version: master » 4.7.x-1.x-dev
Assigned: Unassigned » Arto
Priority: Normal » Minor

Thanks for reporting this. I've heard that some people have had trouble with the upstream widget on various IE versions, possibly this is related. Could you elaborate on the exact Firefox version (and operating system) you experienced the problem with, please?

BTW, in case you have the time and interest: you could install the Firebug extension (http://www.joehewitt.com/software/firebug/) for Firefox, which essentially provides a fully-fledged JavaScript debugger, and could help pinpoint the problem more precisely?

Christefano-oldaccount’s picture

I'm using Firefox 1.5.0.7 on OS X. I also tried Safari 2.0.4 and got the same error.

I'll be able to help more when I work on adding Gantt chart capabilities to my site (maybe a week or two).

Christefano-oldaccount’s picture

Version: 4.7.x-1.x-dev » master

No errors this time; just a blank box. Here's what Firebug has to report for timeline/nodes:

Timeline.DefaultEventSource is not a constructor
timeline.js (line 2)

createTimelineWidgettimeline.js
(line 2)

nullnodes
(line 149)

I'm using Timeline CVS (1.3) with Views 4.7 (1.159) on Drupal 4.7.3.

yelvington’s picture

The same problem exists with Firefox 2.0 / Mac OS X. If you reset the module to use XML instead of JSON, you get a message "Caught exception: TypeError: v1 has no properties"

yelvington’s picture

This may simply be a bad interaction with the devel module, which appends execution time data to pages. If you examine the output of /timeline/json?view=timeline_events and devel module is enabled, you can see the junk at the end.

I disabled devel.module on my test system and the view started working.

However, /timeline/xml?view=timeline_events delivers a blank page, which causes an error if XML is enabled in preference to JSON in the config.

Christefano-oldaccount’s picture

Everything works for me after disabling the devel module. Thanks for the tip, yelvington!

http://fabracadabra.org/timeline

This is such an awesome module.

Christefano-oldaccount’s picture

Sorry, that should be http://fabracadabra.org/timelines

Thank you for all your work on this!

Arto’s picture

Title: JavaScript error in Firefox » JavaScript error (due to devel module)
Status: Active » Fixed

Thanks for catching this, Steve - sure would've been hard to track it down otherwise :-)

I've just committed a fix to the module's CVS version that will prevent other modules from messing with the timeline feed. If you guys grab that (the tarball should be updated by tomorrow), you can safely re-enable the devel module.

Anonymous’s picture

Status: Fixed » Closed (fixed)