On 8/15/06, scharc <[EMAIL PROTECTED]> wrote:

hi, Im very new to jquery and so I have stil a lot to learn...
this is the code I use:
----
<script type="text/_javascript_">
$(document).ready(function(){
        $("a.menu").click(function(){
  $("body").append("<div class='over_content'>< img
src='' /></div>");
        $("div.content").load(this.href,function(){
        $("div.over_content ").remove();
});
        return false;
});
});

</script>
---
everything is fine, untill I load some content with a link inside like
news.html click
If I click on this loaded link, return flase; don't work and redirect me
instead of loading the content news.html into my div... whats wrong?

You need to stop event bubbling and prevent the default...
$("a.menu").click(function(e){    
      e.stopPropagation ();
      e.preventDefault();
      .... rest of your code

-js

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to