Well, the missing D was one problem.
But now I get the very odd result that:
1. Your file (the attachment) doesn't work anywhere for me.
2. My modified copy with fixed loadData works when viewed in Camino
but not in Safari.
3. Your trailing semi-colon kills it.

My updated copy is on line:
http://homepage.mac.com/bfr/george_adams/ComputerHistory3.htm

On Feb 24, 5:29 am, George Adams <[email protected]> wrote:
> Attached is an example with the JSON data in the <body>. No need for the
> external .js file.
>
> The example is also available here.
>
> http://uphelp.dev4.spps.org/Test_Timeline.html
>
> You were very close.
> I added at ; at the end of theJSON data
>
>  "category" : "Hardware",}
> ]
> };
>
> </script>
>
> and I changed the line window.database.loadData(myData); to include the the
> second "D"
>
> loadata
> to
> loadData
>
> I would like to know how to add in the JavaScript files to make the Map work
> too.
>
> On Tue, Feb 24, 2009 at 1:13 AM, Bruce Robertson <[email protected]> wrote:
>
> > I'm afraid I need it spelled out a little more completely.
> > See my attempt at
> >http://homepage.mac.com/bfr/george_adams/ComputerHistory3.htm
>
> > On Feb 23, 9:55 pm, David Huynh <[email protected]> wrote:
> > > > Also, knowing where to put the JSON data in the HTML fragment would
> > > > make it easier for my users as they wouldn't need to upload the JSON
> > > > file to the server.
>
> > > You can put your data in a script tag
>
> > >     <script>
> > >        var myData = [ ... ];
> > >     </script>
>
> > > And then to load it
>
> > >     window.database.loadData(myData);
>
> > > David
>
>
>
> [test.html5K ]Computer History
>
>
>
>
>
> ,
>
> Where:
>
> -
>
>
>
>  test.html.zip
> 2KViewDownload
--~--~---------~--~----~------------~-------~--~----~
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