George Adams wrote:
> 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?
Try to use this trick to include Google Maps first
    http://almaer.com/blog/dynamically-loading-google-maps-for-performance
Then you can try to include the map extension together with the timeline 
extension in one shot:
   
SimileAjax.includeJavascriptFiles(document, "", [
    "http://static.simile.mit.edu/exhibit/api-2.1.0/exhibit-api.js";,
    
"http://static.simile.mit.edu/exhibit/extensions-2.0/time/time-extension.js";,
    
"http://static.simile.mit.edu/exhibit/extensions-2.0/map/map-extension.js";
]);

> 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


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