Hi Dave,

It could be the return(false). Try removing that line and see what happens. You already have the e.preventDefault() in there anyway.

--Karl

____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Dec 5, 2008, at 6:47 PM, dave wrote:


Hi jQueriers,

Bumped into an oddity on Safari and Chrome. I have a HTML page and I
want to intercept all <a> links and feed them through an ajax request
instead. So I first do this

        $("a").bind("click",handleAjaxifiedLink);

which routes clicks to

        function handleAjaxifiedLink(e) {
                e.preventDefault();
                loadPage(e.target.href);
                return(false);
        }

This works under IE and Firefox, but Chrome and Safari just seem to
ignore it. Am I missing something really obvious? I don't run Safari
and the debugger in chrome is unhelpful, to say the least.

Examples of code at http://dev.welovekaoru.client.tandot.co.uk/ and
http://dev.welovekaoru.client.tandot.co.uk/static/wlk.js .

TIA to any smart cookies!

Reply via email to