thank you that worked, but why do i get strange chars
like this:


   ?




Matt Stith wrote:
Your problem is right here:

$(this).parent().append(load(href));

'Load' isnt a global function, and it will automatically put the response of the load statement into the called element, so try this:

$('[EMAIL PROTECTED]').oneclick(function(e){
  e.preventDefault();
  var href=$(this).href();
  var me = this;
  $.get(href,function(response) {
    $(me).parent().append(response);
  }
  $(this).html("hide comments");
  $(this).click(showhideComments);
});

Untested, but it should work.
On 11/17/06, *Alexander Petri* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    i have a simple question
    i have this sample html:

    <h3>Headline 2</h3>
    <p class="text" >My text......</p>
    <p><a href='blog/comments/2' name='comment'>show comments</a></p>

    my js is like this:

    $('[EMAIL PROTECTED]').oneclick(function(){
        var href=$(this).href();
        $(this).parent().append(load(href));
        $(this).html("hide comments");
        $(this).click(showhideComments);
    });

    i just want to load my comments behind the a Tag in the <p> tag
    but it just shows the the new site
    could anyone help me?


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


------------------------------------------------------------------------

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

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

Reply via email to