Hey folks,

I've hit a snag in developing my application, and I'm hoping someone
out there can help.

I have been using Live Query on my app now for a few weeks and
everything has been working great so far.

At the weekend, I decided to introduce the History remote plugin into
my app, so the back button can be used - but this has introduced an
annoying bug.  To try explain:

When the page at http://dev.pastemonkey.org loads, I click "View All
Pastes", and it loads fine.  The URL loads into my #content div, and
the window.location update.
Now, when I click any other link (for example "New Paste"), and I
watch firebug what loads is the "New Paste" page "View All Pastes"
page again, then below it the "New Paste" page again, however what
loads in the #content area depends on what is the last thing loaded,
and in the case of the "New Paste" form, it's always "View All Pastes"
because that takes longer to load.

My code is quite simple:

$('a.ajaxLink').livequery(function(){
        $(this).remote('#content');
        return false;
});

However, I think the problem lies in the History plugin, as inside the
.remote() function, there is a click bind within the function.
However any attempts to debug it have failed.  Can anyone help out
with this?

-- 
Tane Piper
Blog - http://digitalspaghetti.me.uk
AJAX Pastebin - http://pastemonkey.org

This email is: [ ] blogable [ x ] ask first [ ] private

Reply via email to