You've got a common problem. You're correct, the DOMLoaded event (what
jQuery hooks) is only raised on the true page load, not on an ajax load.
The fix is simple. In your success function where you set the content
you just need to also reset your event hooks. IOW, you'll call the same
function jQuery loads and reestablish the hooks. It's also possible to
use jQuery's live query model to tell jQuery to watch for DOM changes
and reestablish the hooks, but I'd rather the first approach.

As for the back issue, you need to look at changing the url in the
browser as you navigate the site. Often this is done w/anchors (the hash
sign) so the page doesn't change. I think jQuery may have some support
for this but I wouldn't swear to it. Google for ajax and browser-back
and you'll find lots of references.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.