I am getting back into Exhibit after a number of years. My new Exhibit needs to run as a Goggle Gadget so it doesn't have access to the <head> of the web page. With the help of this group I was able to do this several years ago by adding a bunch of javascript which loaded the needed items into the head of the page. This page works with Exhibit 2 http://www.hayriverti.org/local-directory-map It has the code for the Exhibit in this xml file http://www.hayriverti.org/localDirectory.xml
The new Exhibit can be seen here as a plain HTML page with stuff loaded in the <head> http://hayriv.com/seeds.html it works Here is another version that does all the loading in the body and is based on the Local Directory javascript. http://hayriv.com/seedsxml.html This also works. This page takes the code of the body of the above page and wraps it in the Google Gadget module XML. http://www.hayriverti.org/seed-library The XML file is at http://www.hayriverti.org/seeds.xml This page loads the html OK and seems to load the Exhibit .js and .css files but the data file isn't loaded or is loaded after the data is moved to the <head> There is a line in the javascript that polls to see if Exhibit is loaded. poll(window, [ "Exhibit" ], onEverythingLoaded); Is there a way to poll to see if the data is loaded? I tried this without success. poll(window, [ "Exhibit","dataLink" ], onEverythingLoaded); Just as a note I was having similar trouble with the file at http://hayriv.com/seedsxml.html which oddly would work when there was an window.alert() added to the code after the includeData(" https://spreadsheets.google.com/feeds/list/0AkgOV8gxmgPadGV3bTVxREZvb05jNUhxaGNQZ2lFZ2c/od6/public/values?alt=json-in-script "); My guess was that this delayed the rest of the script enough to load the data. After moving includeData(" https://spreadsheets.google.com/feeds/list/0AkgOV8gxmgPadGV3bTVxREZvb05jNUhxaGNQZ2lFZ2c/od6/public/values?alt=json-in-script"); earlier in the series of script steps it worked without fail and without the alert() in the code. Any help would be appreciated. George Adams -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/simile-widgets. For more options, visit https://groups.google.com/d/optout.
