The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Chris’ Dynamic Site bug Re: Chris’ Dynamic Site bug


Unfortunately I can’t post a link, but perhaps I didn’t explain well, I’m sorry. This is a query about Chris’ #85 Screencast about using AJAX to switch out content. He does this by using a hash in the url and using some jquery to recognize the hash change and load the appropriate content. The bug I was referring to is when you use a clicking function somewhere else on the page like the following, the clicking function does not work.

$(function() {
$(‘a.example’).click(function() {
//does something//
return false;

But when I go to the url, backspace the hash and click enter to load the normal page. The clicking function works. Another example.
The click function doesnt work.
The click function works completely fine.

I hope that explains it a bit better.