This should work, except that the date format you're using is iso8601.
The Simile parseDateTime function is expecting dates in a format like "Jun 20
2011 22:00:00"
To use the iso8601 format, you need to tell it to use the iso8601 format like
this:
eventSource.loadJSON({events:eventsJson,dateTimeFormat:"iso8601"},document.location.href);
--Mike
On Jun 16, 2011, at 4:16 PM, John S wrote:
> I feel like I'm hung up on one big step right now. Since this is all
> done through ajax, I'm updating/creating/editing on the client side,
> and I've been digging through the discussion pages and documentation,
> and I found this code to help with dynamically handling events, but I
> can't get them to load, and I'm really stumped on why.
>
> var eventsJson = [
> {
> "start": timestart,
> "title": title,
> "icon": icon
> }
> ];
>
> eventSource.loadJSON({ "events": eventsJson },
> document.location.href);
>
> timestamp, title, and icon are all variables. the date is formatted
> like this, 2007-05-05 22:00:00.
>
> There aren't any errors being generated either, so I'm really not sure
> why this isn't working, but I'd definitely appreciate any feedback
> anyone might have.
--
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en.