On 13 August 2011 22:51, dtang85 <[email protected]> wrote:
> oh ok i see what you're saying. on page load, get the hash value and
> make a request to load the content. that worked well. thanks! Is
> location.hash supported in IE? I have a mac, but i do know it is
> supported in chrome and FF.

Yes, location.hash is widely supported.

If you want to see a more formalised version of this technique, have a
look at Backbone.js, especially its Router object.

http://documentcloud.github.com/backbone/

Backbone might be a bit heavy for what you're doing here, but it
provides sensible routing either using hash-based URLs, or HTML5
pushState where available (if you ask it to).
-- 
Nick Morgan
http://skilldrick.co.uk
@skilldrick

Save our in-boxes! http://emailcharter.org

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to