W3C home > Mailing lists > Public > www-tag@w3.org > May 2011

Re: Repurposing the Hash Sign for the New Web comments

From: Syd Lawrence <sydlawrence@googlemail.com>
Date: Thu, 19 May 2011 10:56:41 +0100
Message-ID: <BANLkTik+qO2x3kQ7E+cjTA_iD4WhUkE41A@mail.gmail.com>
To: Karl Dubost <karld@opera.com>
Cc: "www-tag@w3.org" <www-tag@w3.org>
Hey Karl, sorry for losing you :), so, taking 2 users (1 with js), down 2
routes (#! / history).

*User1 (js) down the #! route*

Visits example.com/
Clicks on link to /two.html
Uses ajax to bring in new content
URL now example.com/#!two.html

User1 clicks on link to example.com/#!two.html
sees expected content

User2 clicks on link to example.com/#!two.html
No javascript, sees unexpected content

----

*User 2 (no js) down the #! route*

Visits example.com/
Clicks on link to /two.html
User redirected to /two.html
URL now example.com/two.html

User1 clicks on link to example.com/two.html
sees expected content

User2 clicks on link to example.com/two.html
sees expected content

----

*User1 (js) down the history route*

Visits example.com/
Clicks on link to /two.html
Uses ajax to bring in new content
URL now example.com/two.html

User1 clicks on link to example.com/two.html
sees expected content

User2 clicks on link to example.com/two.html
sees expected content

----

*User 2 (no js) down the **history** route*

Visits example.com/
Clicks on link to /two.html
User redirected to /two.html
URL now example.com/two.html

User1 clicks on link to example.com/two.html
sees expected content

User2 clicks on link to example.com/two.html
sees expected content


This is why I dont see any advantage of using the #! over the history API.
This example also doesn't include any server side redirects, which in itself
is an issue I explained before.

Does it make sense now?

Syd

Syd Lawrence

+447515 354 472
www.sydlawrence.com

skype / twitter: sydlawrence


On Wed, May 18, 2011 at 10:34 PM, Karl Dubost <karld@opera.com> wrote:

>
> Le 18 mai 2011 à 17:24, Syd Lawrence a écrit :
> > I am not sure why there is the need for this. What does the #! give you
> that the history API doesn't?
>
> Does history API work without JS?
>
> --
> Karl Dubost - http://dev.opera.com/
> Developer Relations & Tools, Opera Software
>
>
Received on Thursday, 19 May 2011 09:57:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:48:35 GMT