David and Bruce, I had found the error with the onDone and fDone and fixed that on my copy of the files. I should have posted the corrected files. I was busy making an XSLT stylesheet to convert my FileMaker data into a HTML frament that could be pasted into a web page. I don't understand some of the JavaScript that you send. I have been trying to add in the JavaScript files for the maps without success.
I have tried adding multiple variations of the line below in every location getting a variety of errors SimileAjax.includeJavascriptFiles(document, "", [ " http://static.simile.mit.edu/exhibit/extensions-2.1.0/map/map-extension.js?gmapkey=AAA..." />" ]); If I want to display a Google Map what would have to be added to the ComputerHistory.html file to make this work? 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. On Sun, Feb 22, 2009 at 1:40 AM, Bruce Robertson <[email protected]> wrote: > > Yup, that does it, thanks! > > Now how about loading the data inline? > > Same setup but no document link, contents of "ComputerHistory.js" is > within the HTML somewhere, you tell me where. > > > On Feb 21, 10:30 pm, David Huynh <[email protected]> wrote: > > Bruce, > > > > Could you try replacing > > > > Exhibit.ExhibitJSONImporter.load(href="ComputerHistory.js", > > window.database, onDone); > > > > with > > > > Exhibit.ExhibitJSONImporter.load("ComputerHistory.js", window.database, > > fDone); > > > > David > > > > Bruce Robertson wrote: > > > Could you be more specific or post a working example? > > > As I understand it the object was to remove the link in the head of > > > the document, then at the end of the document modify per your > > > instructions. > > > > > But that doesn't work for me. > > > See: > > > > >http://homepage.mac.com/bfr/george_adams/ComputerHistory2.htm > > > > > This unmodified version works: > > > > >http://homepage.mac.com/bfr/george_adams/ComputerHistory.htm > > > > > On Feb 18, 2:39 pm, David Huynh <[email protected]> wrote: > > > > >> George, > > > > >> Instead of > > >> window.database.loadDatalinks(onDone); > > >> you can try > > >> Exhibit.ExhibitJSONImporter.load(dataUrl, window.database, > onDone); > > >> David > > > > >> George Adams wrote: > > > > >>> David, > > >>> Those files worked just fine on the Mac with Firefox 3. I did notice > > >>> that the json file is still being loaded in the <head> > > >>> <link type="application/json" rel="exhibit/data" > > >>> href="ComputerHistory.js"> > > > > >>> The timeline doesn't display if this is in the <body> > > >>> Is there a SimileAjax.includeJSONFiles like the > > >>> SimileAjax.includeJavascriptFiles for the JSON file? > > > > >>> Where is the documentation for the javaScript functions so I can look > > >>> up some of this stuff myself? > > > > >>> On Wed, Feb 18, 2009 at 1:38 PM, David Huynh <[email protected] > > >>> <mailto:[email protected]>> wrote: > > > > >>> George Adams wrote: > > >>> > Looks like the HTML file was not attached or was put in line > > >>> with the > > >>> > message and was messed up. Can you zip it and attach it or > > >>> change the > > >>> > extension and try again. > > >>> Oops, zipped and reattached. > > > > >>> 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 -~----------~----~----~----~------~----~------~--~---
