On Nov 14, 12:15 pm, dandanthesushiman <[EMAIL PROTECTED]> wrote:
> Hi
>
> I hope someone can help, I am just getting stated with jQuery so I may
> be asking a question that is obvious to most of you but I'm stuck.
>
> I have implemented the History/Remote plugin in on my site. I found
> the files onhttp://stilbuero.de/jquery/history/#Chapter_1. It works
> really well except I would like to have a default setting so that when
> the page is initially loaded the Ajax Div is populated with content
> and becomes part of the history. The tabs 
> pluginhttp://stilbuero.de/jquery/tabs/index.html
> does exactly this (you load index.html the first tab is active by
> default with content beneath it, clicking the other tabs changes the
> content and you can use the back/forwards buttons to navigate. If you
> navigate back to index.html the content is still visible beneath the
> tab). In my effort although I have placed the "default" content
> between the div tags which means it shows up on page load if I then
> move around the site when I navigate back to the initial page the ajax
> is not loading the initial content. Can anyone suggest a fix.
>
> TIA

The plugin's initialize method takes an optional argument - a function
that is used to restore the state of the page in case the user
navigates to a point in history where there is no hash in the URL:

$.ajaxHistory.initialize(function() {
    // restore certain page state here
});


--Klaus

Reply via email to