mmikowski/urianchor

Listener

dylanmac opened this issue · 3 comments

Do you recommend a listener to use in conjunction?

Hello?

The preferred listener to use with URI Anchor is hashchange:

 $(window).bind( 'hashchange', onHashChange );

See a full example in the online 6.5 listings.

To see it running, make a dereferenced copy of the directory and open the webpage:

cp -aL 6.5 6.5dr
cd 6.5dr
google-chrome spa.html
// Remember to log in as "fred" to make it possible to open and close the chat window

I hope that helps. I will add this to the README; if this works for you, can we close the issue?

Thank you.