W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2015

Re: JSON imports?

From: Wilson Page <wilsonpage@me.com>
Date: Fri, 17 Apr 2015 14:23:25 +0100
Message-ID: <CAP=fDxW+xKgB6e9Zwd7hTZegHYM5+i1gfASOjNsSbHY=EvB0CA@mail.gmail.com>
To: Matthew Robb <matthewwrobb@gmail.com>
Cc: Glen Huang <curvedmark@gmail.com>, public-webapps <public-webapps@w3.org>
Sounds like something you could write yourself with a custom-elements. Yay
extensible web :)

On Fri, Apr 17, 2015 at 1:32 PM, Matthew Robb <matthewwrobb@gmail.com>
wrote:

> I like the idea of this. It reminds me of polymer's core-ajax component.
> On Apr 16, 2015 11:39 PM, "Glen Huang" <curvedmark@gmail.com> wrote:
>
>> Inspired by HTML imports, can we add JSON imports too?
>>
>> ```html
>> <script type="application/json" src="foo.json" id="foo"></script>
>> <script type="application/json" id="bar">
>> { "foo": "bar" }
>> </script>
>> ```
>>
>> ```js
>> document.getElementById("foo").json // or whatever
>> document.getElementById("bar").json
>> ```
>>
>>
Received on Friday, 17 April 2015 13:23:52 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:31 UTC