Loading 440 events in Simile Timeline

18 views
Skip to first unread message

deam31

unread,
Sep 1, 2009, 7:20:28 AM9/1/09
to SIMILE Widgets
Hi, I'm using Simile Timeline version 1.2 and I can't get to load 440
events from my xml event's file. There is no problem loading less
events and I wonder if there is a established limit?

What's the max number of event's that the timeline support?
Does this bug is fixed on the current library version?


Deam
Thanks..

Michael Nosal

unread,
Sep 1, 2009, 9:56:25 AM9/1/09
to simile-...@googlegroups.com
I've no problem loading many more events than that using json, and
there shouldn't be any built-in limitation to the xml parser.
Churning through large xml files can be slow on browsers, so it helps
if your xml doesn't contain extraneous elements that aren't used by
your application of timeline.
I'd suggest looking at events in your file at the point where it bombs
out and see if there is any malformed xml in the file, or something
like a nonsense date.

--Mike

chandu

unread,
Sep 1, 2009, 10:15:42 AM9/1/09
to SIMILE Widgets
Even I faced challenges but for me it used to take a lot of time but
in the end it would always show the timeline. It is because of the
enormous values in JSON data. So, I fixed it to 200 at a time and
implemented pagination by fetching next or previous events' JSON using
AJAX and then loading them using the following.

var importer = Exhibit.importers["application/json"];
importer.load(
"",
window.database,
function () {Exhibit.UI.hideBusyIndicator(); ///here you can do
some thing if you want to ...like saying loaded next or previous
successfully.///}}
);

Hope it helps.
Reply all
Reply to author
Forward
0 new messages