Attached is an example of data loaded in a JS string in the body of the HTML
page. The string name is "data" and it is loaded with these lines
    window.database = Exhibit.Database.create();
    window.database.loadData(data);
    window.exhibit = Exhibit.create();
    window.exhibit.configureFromDOM();


On Mon, May 30, 2011 at 5:13 PM, Nik_G @OpenHalton <[email protected]>wrote:

> Does anyone have a working example or a solution for loading Exhibit
> data from a string , e.g.  var data='{ "items": [{ "type": "Park",
> "id": "1",...}]}';  instead of loading a .js or Jasonp feed
> externally?
>
> The method described in the link doesn't work (outdated API?) :
>
> http://groups.google.com/group/simile-widgets/browse_thread/thread/97032a4b7f93251c/a6c55f206208ad22
> ?
> JavaScript seems to break in all browsers, leading me to believe there
> is probably a different way of doing it.
>
> Anyone know how to load data from a JS string?
>
> --
> 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.
>
>

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


<<< text/html; charset=UTF-8; name="HRTI_DirectoryInBody.html": Unrecognized >>>

Reply via email to