Welcome Guest, Not a member yet? Register   Sign In
Is it really Ajax what I am looking for ? Can you check this code?
#3

[eluser]ytsejam[/eluser]
Code:
$("#sidebar-content ul li a").click( function(e){
e.preventDefault();
  var target_url = $(this).attr('href');
   $.ajax({
   url: target_url,
     type: 'POST',
     data: data,
     success: function(response) {
      $('#content').html(response.msg);
     }
    });
     return false;
    });

I have written this one but still no success.


Messages In This Thread
Is it really Ajax what I am looking for ? Can you check this code? - by El Forum - 08-05-2012, 08:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB