I am new javascript. I managed to create a .load script which loads in different views (with alot of help). Its working but I don't know how to tell the script to load in the appropriate view when someone uses a url like www.mydomain.com/#view3
Apart from this already existing problem i want to replace my current load script with the html5 history api and fall back to the old one when the clients browser doesnt support it. how can i find out if the browser supports the history api and if not how to make a fallback? i know modernizr supports css classes for fallbacks. dooes a lib exists for the same thing in javascript?
I know its alot im asking for. im currently reading myself in, but im kinda pressurized :-/
this is my corrent code: