Re: [Simile-Widgets] use a json loaded from desktop

46 views
Skip to first unread message

Michael Nosal

unread,
Sep 20, 2012, 10:10:06 AM9/20/12
to simile-...@googlegroups.com
Yes, you can refer to JSON stored in a static file. However, note that Google prevents AJAX calls to file:/// urls, so you'll need to put it where it can be served via http.

--Mike

On Sep 19, 2012, at 7:11 AM, Andrea Maestroni wrote:

> hi to all!
>
> i am a new user of SIMILE Widgets!
> i have a question...it's possible to use a json loaded from a desktop (or other directory) for the creation of the page with the widget?
>
> for example i have create a page (a project with netbeans where i have a jsp page e a json file) with this istruction:
>
> <link href="Person.json" type="application/json" rel="exhibit/data" />
>
> and it works...
> but if a want to use a json from the desktop?
>
> i have think to this solution because i want to modify the json file with a java program (for example i insert a data in a database and with this data ,modify the json) and after i can visualize the data in the jsp page with the widget...
>
> I hope I was clear :)
>
> thank a lot in advance!

Andrea Maestroni

unread,
Sep 20, 2012, 3:29:07 PM9/20/12
to simile-...@googlegroups.com
thanks!

do you know some example for this solution?
Reply all
Reply to author
Forward
0 new messages