Hi Guoqian, Take a look at this example: www.thisbeautifulgame.com
Look at the source of this page. I'm doing what you're looking for (creating the Exhibit JSON on-the-fly via PHP). The key is this: <!-- ***** Load JSON data ***** --> <link href="../php/This.Beautiful.Game.Json.Generator.v1.5.php" type="application/json" rel="exhibit/data" /> HTH, -Mark On Apr 28, 7:50 am, "Jiang, Guoqian, Ph.D." <[email protected]> wrote: > Thanks John, > > I think I can make some server-side php codes that may grab the remote > xml file and transform it to json format. But I have not figured out how > to pass the json in php to Exhibit. > > Do you know or does anyone know how the json data in php can be passed > to Exhibit? > > Thanks, > > -Guoqian > > ________________________________ > > From: [email protected] > [mailto:[email protected]] On Behalf Of John Callahan > Sent: Tuesday, April 27, 2010 6:33 PM > To: [email protected] > Subject: Re: [Simile-Widgets] Dynamic transformation of XML to Exhibit > > I believe this is a security measure inside browsers. The xml does not > have to be static (e.g., generated from php/sql call) but it does have > to be local. You could try Babel (http://simile.mit.edu/babel/), or > maybe Yahoo Pipes (to convert the XML into one of the formats Exhibit > can import.) Php, or some server-side code, should be able to grab the > remote xml file and pass it to Exhibit. Unfortunately, I haven't tried > these so I don't have any code. ;) Of course, if you don't need > real-time data, you can run a simple script (wget) that downloads the > xml to your server, such as on a hourly basis. > > - John > > On Tue, Apr 27, 2010 at 5:49 PM, Jiang, Guoqian, Ph.D. > > <[email protected]> wrote: > > Hi, > > It seems that Exhibit XML importer only supports local static > xml file and does not support a xml url through a web service. > > If this is true, is there any workaround about a dynamic xml > transformation to Exhibit? > > Thanks, > > -Guoqian > > -- > 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] > <mailto:simile-widgets%[email protected]> . > For more options, visit this group > athttp://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 > athttp://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 > athttp://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.
