Nik,
I'm not all that good with JavaScript so I don't know the best or easiest
answer. I did do a Google search for "combining JSON feeds" and there were
several possibilities. The ones that used jquery looked promising. Maybe
someone else on the list has a better idea.
George

On Tue, May 31, 2011 at 10:12 PM, Nik_G @OpenHalton <[email protected]>wrote:

> George -
>
> this is great!! My problem was I tried to stick everything into one
> long string, vs. what your example does.
> What type of variable is this:
>
> var data = {
>    items :
>      [
>    {"type"...
>    ...
>    ]};
>
> Taking this approach with the variable certainly works, and
> surprisingly, without the need to add: ?autoCreate=false to loading
> the exhibit.
> The question is how to build the variable dynamically (in steps)
> reading from various json feeds, etc.
>
> Nik
>
> On May 30, 8:12 pm, George Adams <[email protected]> wrote:
> > 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/97.
> ..
> > > ?
> > > 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.
> >
> >
> >
> >  HRTI_DirectoryInBody.html
> > 30KViewDownload
>
> --
> 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.

Reply via email to