Thanx a lot Chris, I've already found that topic but can't do it
myself.
So I did it but it "blinks" more and more according to the clicks
made.

My js code is this one

$(document).ready(function(){
                var loadContent = function(){
                $('.research .toolbox li a, .research .research_do').click(
                                function(){
                                        var oldLink = $(this).attr('href');
                                        $(this).parents('.research').load( 
'ajax-'+oldLink, function()
{loadContent(); $(this).fadeIn()} );
                                        return false;
                        });
                }

                loadContent();
});

And if you want a live example : http://www.fightformetal.net/research.html
Account : test
Password : test

Thanx a lot, again...



On May 22, 9:14 pm, "Chris W. Parker" <[EMAIL PROTECTED]> wrote:
> On Tuesday, May 22, 2007 11:23 AM [EMAIL PROTECTED] <> said:
>
> > Hello everybody and my apologies for my poor english but I'm a french
> > speaker.
>
> I had no problem with your English. :)
>
> > I want to dispatch a "load" event on a link in a "loaded" content.
>
> [snip]
>
> > I'd like that the "My second link" can dispatch the click event and
> > then load the content of a third kind. But that's not what happens and
> > I understand it because the DOM is not "re-loaded" and JQuery can't
> > detect the new link...
>
> > Any help/link would be appreciated.
>
> You have to reapply the events in the callback of the load() function
> (iirc). The best way to do it is to assign your events to a function and
> then call that function every time you need it. e.g. The first time and
> then each time you reload the content.
>
> See here:
>
> http://docs.jquery.com/Tutorials:AJAX_and_Events
>
> Hope that helps,
> Chris.

Reply via email to