Hi

Since I am unable to change the document head, I am following the
instructions at 
http://simile.mit.edu/wiki/Exhibit/How_to_include_the_Exhibit_API
(section "Dynamic embedding").

My exhibit onload looks like this:

         Exhibit_onLoad = function() {
               /*
                *  Include your own styles here.
                */
               // includeCSS("my-styles.css");
               alert('iran');

            window.database = Exhibit.Database.create();
            var imp = Exhibit.importers["application/json"];
             if(window.database===undefined){
                alert('db undef');
              }
            imp.load("/json/policies-explorer",window.database,function
(){alert('ran2');});
               /*
                *  Code that you normally put in the onLoad handler
for
                *  instantiating the exhibit and loading data.
                */
           };


That yields this error http://imgur.com/C73pu.png (causes an error in
exhibit-bundle.js line 233). This seems to imply that my
Database.create() call is wrong in some sense (the database is missing
some type function that's required).

On the other hand, if I follow the instruction at
http://simile.mit.edu/wiki/Exhibit/API/Database and build the database
using window.database = new Exhibit.Database(); I get the following
constructor not supported message:

http://imgur.com/NmkKj.png (error is not a constructor)

I'll work on putting up the code in a publicly accessible place, but
basically I am trying to do two things:

1. Load exhibit using only the body of the html-document, no access to
the head.
2. Load the data on the fly by calling out to a jsonp uri.


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