Read this:
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F
I think that is your problem.

On 9 Okt., 19:44, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi all,
> i am a beginner with javascript and finally found out how to drag the
> content (a playingcard) from one div to another one.
> it works when i load the page and include the content inside a content
> div, but.....
> Normally i have a indexpage with a content div.
> I use a menu, which loads stuff in my content div like:
>
>    $('#nav li a').click(function(){
>                   if($(this).attr('href') === 'http://www.helenaweb.nl/
> Klaverjassen/')
>             {
>                return true;
>             }
>             else
>             {
>                var ModToLoad = $(this).attr('href');
>                            $("#content").load(ModToLoad);
>          return false;
>          }
>    });
>
> The cardgame is then loaded inside content div, but drag/drop does not
> work
>
> When i directly include the cardgame in the content div (instead of a
> welcom message) the it works fine!
> So, its exact the same content, because it is the same source file!
>
> So, it does work well, but not after i load the code via my menu,
> What am i doing wrong?
>
> Thanks in advance for helping!
>
> Peter

Reply via email to