jQuery convert URL to parameters across entire site
Let's say I have a directory web site and want to display details for
every city in the US. I want the link mysite.com/CA/fairfield to go to a
specialized page on the city Fairfield, CA, which is dynamic.
I know I can read the URL parameters using
window.location.pathname.split("/"). What I'm not getting is how I set up
a single script that monitors any combination of URL parameters on my
site. I don't mean how to actually get the string "CA", but conceptually,
how do I force someone typing in CA/fairfield to go to a certain script so
I can check what they entered?
No comments:
Post a Comment