W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2012

Re: [whatwg] At Inclusion (a declarative way to "Ajaxise" a website)

From: Elliott Sprehn <esprehn@gmail.com>
Date: Mon, 18 Jun 2012 13:40:41 -0700
Message-ID: <CAPJYB1jwvJ-v2sCqeQPRGP+o2TJ5+zqiN0VprK7qB_4LkKL5Dw@mail.gmail.com>
To: Florent FAYOLLE <florent.fayolle69@gmail.com>
Cc: whatwg@whatwg.org
Browsers allow unescaped @'s already in the URL field. You can't hijack it
to mean something different like that.

On Sun, Jun 17, 2012 at 7:32 AM, Florent FAYOLLE <
florent.fayolle69@gmail.com> wrote:

> Hello,
>
> I have written a proposal that introduces a new way to include remote
> contents into the document (in other (bad) word, to "Ajaxise" it) using a
> declarative way.
> This proposal is named At Inclusion, and can be read here :
> http://fflorent.github.com/At-**Inclusion-Proposal/<http://fflorent.github.com/At-Inclusion-Proposal/>
>
> To rapidly sum up, At Inclusion is a part of the URL that describes pairs.
> Each pair is composed of :
>  - the ID of the target element (the element that gets the remote content);
>  - the URL leading to the content to include.
>
> and the At Inclusion has this form : @TARGET_ID1=URL1,TARGET_ID2=**URL2...
>
> For example, let's suppose we have this main document (located at
> http://myserver/mypage.html) :
> <html>
> <head>...</head>
> <body>
>        ...
> <a href="@myTarget=/myaddition.**html">click me</a>
>        ...
> <div id="myTarget"><p>default content here</p></div>
>        ...
> </body>
> </html>
>
> and the content to include in myTarget (located at /myaddition.html) :
> <p>hello world</p>
>
> By clicking on the link, the HTML code of #myTarget will be replaced with
> this one :
> <div id="myTarget"><p>hello world</p></div>
> and the new location of the page will be : http://myserver/mypage.html@**
> myTarget=/myaddition.html<http://myserver/mypage.html@myTarget=/myaddition.html>
>
> Feedbacks welcome.
>
> Thanks,
> Florent
>
Received on Monday, 18 June 2012 20:41:38 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:43 UTC