mleden wrote:
> Great David that was just the help I needed!  Sewing your input with
> the TimeGrid example code, I was able to whittle it down to the
> following:
> <html>
>     <head>
>         <title>Timegrid</title>
>
>               <script 
> src="http://static.simile.mit.edu/exhibit/api-2.0/exhibit-
> api.js?autoCreate=false" type="text/javascript"></script>
>         <script>
>             window.jQuery = SimileAjax.jQuery;
>             window.$ = SimileAjax.jQuery;
>         </script>
>         <script src="http://static.simile.mit.edu/timegrid/api/
> timegrid-api.js" type="text/javascript"></script>
>
>               <script language="JavaScript">
>                       var anEventSource;
>                       var aTimegrid;
>                       function onLoad()
>                       {
>                       anEventSource = new Timegrid.DefaultEventSource();
>                               aTimegrid = 
> Timegrid.createFromDOM(document.getElementById("some-
> div"));
>                               Timegrid.loadJSON("timegrid.json", 
> function(json, url)
>                               {
>                                       anEventSource.loadJSON(json, url);
>                               }
>                               );
>                       }
>               </script>
>     </head>
>     <body onload="onLoad();">
>                   <div id="some-div"
>                               tg:role="grid"
>                 tg:views="week"
>                               tg:eventSource="anEventSource"
>                 tg:dayStart="0"
>                               tg:dayEnd="24"
>                               tg:yCell="20">
>                       </div>
>     </body>
> </html>
>
> For the most part, seems to work with some seed data on either IE 7.0,
> FF 3.0, or Safari 3.2 on WinXP.  I see a gray background on Feb 9th
> (presumably representing today's date).  Also, may just be a bug, I
> see a gray bar at 8pm row (for all dates) once I have scrolled forward
> to today's date.
>
> Not sure if you know, but what are the other "tg:" name-value pairs?
>   
Mark,

Sorry but I really don't know... Mason Tang was the author so you might 
want to bug him. :-)

One note: Timegrid lays things out by percentage instead of by pixel 
(e.g., style="width: 45%" vs. style="width: 364px"). This made it rather 
hairy to work cross-browser. We were planning to change over to pixel, 
but didn't have time. You might be seeing the problems caused by the 
percentage-based implementation.

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