mleden wrote:
> I understand that Timegrid is no longer supported.  However, it's *SO*
> close to what I need :-)
>
> David, the "MIT Course Picker" doesn't appear to use any JSON file
> whatsoever.  However, looking at the legacy Timegrid documentation on
> the MIT wiki, it looks like that was the original intent.  Is it
> possible to bootstrap Timegrid (with the JQuery "workaround" you
> mention) *and* get the data from JSON?  If so, would it be possible
> for you to outline what scripts and syntax I'd need in the <head> tags
> and the syntax for the <body> (assuming the JSON syntax remains as it
> was)?  If I can get this to work in the short term, I might be able to
> invest some time into resurrecting Timegrid itself.
>   
I believe Timegrid works pretty much like Timeline, so I'd expect 
something like this to work, from digging around in picker:

    var anEventSource;
    var aTimegrid;
    function onLoad() {
        anEventSource = new Timegrid.DefaultEventSource();
        aTimegrid = 
Timegrid.createFromDOM(document.getElementById("some-div"));

        Timegrid.loadJSON(
           jsonUrl,
           function(json, url) {
             anEventSource.loadJSON(json, url);
           }
        );
    }
  
And in the HTML file

    <div id="some-div" tg:role="grid"
                        tg:views="week" tg:eventSource="anEventSource"
                        tg:dayStart="8" tg:dayEnd="22" 
tg:yCell="100"></div>


David

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to