You can use document.location.hash to get the value of the "bookmark",
and based on that value auto-load the content of your link
automatically.

On Feb 6, 10:59 am, atomk <akob...@adamkobrin.com> wrote:
> I know I can change the name in the location bar with the method you
> describe, but because all the transitions initiated by clicking a link
> are done with Javascript, I don't know how to make each location bar
> name bookmarkable so it will "remember" the JS state of things - no
> matter what you bookmark, you'll end up at the beginning, the
> home"page".
>
> I think this is do-able, I just don't know how.
>
> Thanks
>
> On Feb 4, 12:16 pm, Ricardo Tomasi <ricardob...@gmail.com> wrote:
>
> > The usual way that's done is via the URL hash:
>
> >http://adamkobrin.com/#about
>
> > location.hash == '#about'
>
> > - ricardo
>
> > On Feb 4, 3:50 pm, atomk <akob...@adamkobrin.com> wrote:
>
> > > I have different subdomains pointing to the same file on my server -
> > > simple enough. What I'd like to do is essentially reverse that: Can
> > > the same file redirect to different subdomains?
>
> > > For example:http://adamkobrin.com When you click on any of the top 4
> > > "links", different content is loaded, but you remain on the same page
> > > with (hopefully) nice smooth transitions - the url remains unchanged.
> > > I'm looking for a client-side way to change the subdomain in the
> > > location bar based on each link, making it possible for the user to
> > > bookmark each "page" differently, without compromising my smooth
> > > transitions by loading a new page...
>
> > > Make sense? Possible?
>
> > > Thanks!
>
>

Reply via email to