Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1070861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:37:43+00:00 2026-05-16T20:37:43+00:00

I have a website with ajax loaded content. Now I want to implement the

  • 0

I have a website with ajax loaded content. Now I want to implement the jQuery address plugin for better user experience and SEO crawling.

With this line $.address.value($(this).attr('href')); the address changing thing works, but how can I do the history support, crawling and so on?

There is something with the $.address.change(function(event){...}); I have to do, but what? I’ve tried to put the $("#content").load(toLoad,'',showNewContent) in it, and other thousand things, unfortunately with no results.

The documentation is really poor: http://www.asual.com/jquery/address/docs/

This is my code:

$('a:not([href^=http])').click(function() {

    var toLoad = $(this).attr('href') + " #ajaxedContent";

    $("#content").fadeOut(600,loadContent);

    $("#load").remove();
    $('#logo').append('<div id="load"></div>');
    $("#load").fadeIn(100);

    $.address.value($(this).attr('href'));

    function loadContent() {
        $("#content").load(toLoad,'',showNewContent)
    }

    function showNewContent() {
        // Capture the final dimensions of the content element and animate, finally fade content in
        $("#limit").animate({height: $("#content").height()},600,'easeInOutQuad',function() {
            $("#content").fadeIn(600,hideLoader);
            callback();
        });
    }

    function hideLoader() {
        $("#load").fadeOut(300);
    }

    return false;
});

The basic implementation looks like this:

$.address.change(function(event) {
    // do something depending on the event.value property, e.g.
    // $('#content').load(event.value + '.xml');
});

$('a').click(function() {
    $.address.value($(this).attr('href'));
});

Any help would be very appreciated. Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:37:43+00:00Added an answer on May 16, 2026 at 8:37 pm

    This way it works:

    $.address.init(function(event) {
    
        $('a:not([href^=http])').address();
    
    }).change(function(event) {
    
        var toLoad = event.path + " #ajaxedContent";
    
        $("#content").fadeOut(600,loadContent);
    
        $("#load").remove();
        $('#logo').append('<div id="load"></div>');
        $("#load").fadeIn(100);
    
        function loadContent() {
            $("#content").load(toLoad,'',showNewContent)
        }
    
        function showNewContent() {
            // Capture the final dimensions of the content element and animate, finally fade content in
            $("#limit").animate({height: $("#content").height()},600,'easeInOutQuad',function() {
                $("#content").fadeIn(600,hideLoader);
                callback();
            });
        }
    
        function hideLoader() {
            $("#load").fadeOut(300);
        }
    
        return false;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using jQuery's Address plugin ( website ) to enable the back/forward buttons
The website I am developing uses jQuery UI tabs to load content via AJAX
I have a website that paginate result via jquery.ajax(). URLs looks like: website.com/index.php?page=N I've
I have a <div> that holds a google ad. My website is mostly AJAX
I have a ASP.Net website that is failing on AJAX postbacks (both with ASP.Net
I have a website that plays mp3s in a flash player. If a user
I have a XHTML Strict Website 'main.php' with a normal Header where jQuery and
Can jquery-ajax reload a div WITH DYNAMIC CONTENTS. For example if i have a
I have a website here which is continuously updated by Ajax. I'm using HtmlUnit
I have an Ajax.Net enabled ASP.Net 2.0 web site. Hosting for both the site

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.