Hi Klaus

Thank you very much for your help. Sorted!

Klaus Hartl wrote:
> On Nov 14, 9:13 pm, dandanthesushiman <[EMAIL PROTECTED]> wrote:
> > Thanks for the quick reply, but my lack of knowledge means I stil
> > don't get it I am trying
> >
> > $(function() {
> >                 $('a.remote').remote('#chapter', function() {
> >                     if (window.console && window.console.info) {
> >                         console.info('content loaded');
> >                     }
> >                 });
> >                 $('a.history:eq(0)').history(function() {
> >                     $('#show-hide').hide();
> >                 });
> >                 $('a.history:eq(1)').history(function() {
> >                     $('#show-hide').show();
> >                 });
> >
> >                 $.ajaxHistory.initialize(function(){
> >                                  load("hometext.html");
> >                                 });
> >             });
> >
> > But this does not do it. Any chance you could post code that's a bit
> > more specific or
> > a link to a site that does this so I can look at the code.
> >
> > Thanks Again
>
> Is load a function you defined yourself? I guess not and assume you
> wanted to use jQuery's load method. In that case you need to select
> the target first, like:
>
> $('#target').load('hometext.html');
>
> So:
>
> $.ajaxHistory.initialize(function(){
>     $('#target').load('hometext.html');
> });
>
> The code didn't do anything because it threw an error. Do you use
> Firebug or at least Firefox' error console? You should start using
> either or (Firebug is highly recommended and I can't imagine working
> it), because you would have seen there is an error and the reason why
> the code doesn't do anything.
>
>
> --Klaus

Reply via email to