[Simile-Widgets]Timeline widget not working on Chrome

215 views
Skip to first unread message

Xiaoli

unread,
Jan 29, 2012, 11:08:30 AM1/29/12
to SIMILE Widgets
Hi there,

I am a rookie in simile widget and is going through the examples given
in the wiki pages, during which I found the timeline events loaded
from xml can not be displayed in Chrome (but it works in FF). Can I
modify the codes to support chrome? I am using exact the same codes
from http://www.simile-widgets.org/wiki/Getting_Started_with_Timeline.

Thanks for the help!

Xiaoli

Jeff Roehl

unread,
Feb 6, 2012, 6:02:08 PM2/6/12
to simile-...@googlegroups.com
Xiaoli,

Make sure you dont have any trailing commas. FF is notorious in being forgiving with this, Chrome and Explorer, not so much.

In the following code, look at the last comma. This would fork in FF but not in Chrome.

            var bandInfos = [
                Timeline.createHotZoneBandInfo({
                    width:          "80%", 
                    intervalUnit:   Timeline.DateTime.WEEK, 
                    intervalPixels: 200,
                    zones:          zones,
                    eventSource:    eventSource,
                    date:           date,
                    timeZone:       -6
                  //  theme:          theme
                }),
                Timeline.createHotZoneBandInfo({
                    width:          "20%", 
                    intervalUnit:   Timeline.DateTime.MONTH, 
                    intervalPixels: 200,
                    zones:          zones2, 
                    eventSource:    eventSource,
                    date:           date, 
                    timeZone:       -6,
                    overview:       true
                   // theme:          theme
                },)
 
Thanks Jeff Roehl jro...@yahoo.com (818) 912-7530

From: Xiaoli <xrayx...@gmail.com>
To: SIMILE Widgets <simile-...@googlegroups.com>
Sent: Sunday, January 29, 2012 8:08 AM
Subject: [Simile-Widgets]Timeline widget not working on Chrome
--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To post to this group, send email to simile-...@googlegroups.com.
To unsubscribe from this group, send email to simile-widgets+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en.



Jeff Roehl

unread,
Feb 6, 2012, 6:14:37 PM2/6/12
to simile-...@googlegroups.com
The last sentence in that last email should have been:

This would Work in FF but not in Chrome.
 

From: Jeff Roehl <jro...@yahoo.com>
To: "simile-...@googlegroups.com" <simile-...@googlegroups.com>
Sent: Monday, February 6, 2012 3:02 PM
Subject: Re: [Simile-Widgets]Timeline widget not working on Chrome

To unsubscribe from this group, send email to simile-widget...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages