##### SOLVED ##### I had a javaScript refresh setInterval("...", 1000); in the source code which caused the error. Thanks a lot for your help!
the html
<div class="stackwrapper" id="user1"></div>
<div class="stackwrapper" id="user2"></div>
<div class="userdrawings"></div>
the javascript
$('.stackwrapper').click(function(e){
var id=$(this).attr('id');
$('.userdrawings').load('loadSession.php?user='+id).fadeIn("slow");
});
Somehow it only works at once, only at the first click on stackwrapper, when I click on the second one, the function is not triggered again.
It's strange , while It works well on my computer . It changes every time when I click. this is my code
html
js
user_session.php
try to put it inside a
Okay now i get it, it's because you're making ajax call. Here's a link that answers your question.
You could try putting it at the document level:
Can't reproduce the problem with this self-contained example
You might want to use a javascript debugger, like e.g. included in firebug and check for errors.