I have a website that has a menu div at the top and a side nav to the left. I’ve been using ajax .load() to replace the content div with whatever I want. I seem to be having a lot of issues when using jQuery in the content of those pages that get loaded in. Using the .live() function is helping but I keep getting unexpected behavior in places.
What is the right way to handle a menu/nav layout, without refreshing the entire page, and having no issues with the content that goes in? What frameworks do you guys use.
The right way is NOT ajax. You are saving a small amount of bandwidth and in return breaking back button navigation, caching, search engine indexing and making your whole site dependant on javascript. It’s a crappy tradeoff.