I think jQuery 1.3 will solve this problem by

$('.teryt').live('click', (function(){
   $('#miejscowosci-wybierz-wyniki').load($
     (this).attr('href'));
     return false;
   });
});


On Dec 31, 10:35 am, Karl Swedberg <k...@englishrules.com> wrote:
> Not a problem at all. Glad to help.
>
> --Karl
>
> On Dec 31, 2008, at 1:31 PM, vcs wrote:
>
>
>
> > Very very thank this is it:) Sorry :)
>
> > On 31 Gru, 18:50, Karl Swedberg <k...@englishrules.com> wrote:
> >> Hi there,
>
> >> It sounds like your problem could be addressed by one of the  
> >> solutions
> >> offered 
> >> here:http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_st
> >> ...
>
> >> --Karl
>
> >> ____________
> >> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> >> On Dec 31, 2008, at 12:45 PM, vcs wrote:
>
> >>> This should be a recursive construction (maybe nesting while-loops)
> >>> responding at every mouse click. But I cannot do it. It should be
> >>> simple. jquery fetches 'href' attribute value from clicked link and
> >>> should load data. So when "#miejscowosci-wybierz-wyniki" link is
> >>> clicked, I expect to have new group of links loaded which is
> >>> associated with mentioned link. When I click on "#miejscowosci-
> >>> wybierz-
> >>> wyniki" again I expect to have new data loaded again and jquery  
> >>> should
> >>> fetch 'href' attribute value again and return it to "#miejscowosci-
> >>> wybierz-wyniki" (same link). It's all about losing recursion. When
> >>> data has been loaded after first click, those links are beginning to
> >>> point real targets, and jquery do not work on them anymore.
>
> >>> On 31 Gru, 17:12, Joe <joseph.is...@gmail.com> wrote:
> >>>> Could you point me to a link or show more code?  Not sure exactly
> >>>> what
> >>>> your trying to accomplish here.
>
> >>>> Joe
>
> >>>> On Dec 31, 9:40 am, vcs <jaworskidan...@gmail.com> wrote:
>
> >>>>> Hello everyone!
> >>>>> My description:
> >>>>> I have a field (type div), under which links links are available  
> >>>>> to
> >>>>> some country's regions and loaded on button click. When I click on
> >>>>> loaded data, I mean one of these links, region's districts are
> >>>>> loaded.
> >>>>> When I click on one of the districts links, spots (I named
> >>>>> them-'miejscowosci') are loaded. There is a weird problem, because
> >>>>> first data is returned correctly by a certain field, while when
> >>>>> clicking next time, it jumps to the same page and looks like  
> >>>>> doesn't
> >>>>> pick up the jquery:
> >>>>> $('.teryt').click(function(){
> >>>>>                         $('#miejscowosci-wybierz-wyniki').load($
> >>>>> (this).attr('href'));
> >>>>>                         return false;
> >>>>>                  });

Reply via email to