Welcome Guest, Not a member yet? Register   Sign In
problem with ajax

within my view ive got my inbox system and to delete a message ive got an image with class="delete"
calling the following code

type: "POST",
url: "/index.php/messages/delete",
    data: "id="+$(this).prev().text(),
         success: function(html){
    $('#msg_container').fadeOut('slow').load('/index.php/inbox').fadeIn("slow");}, 20000);
      return false
my controller is

function delete() {
  $result = $this->user->deletepm($name);


but nothing is working help?

Theme © iAndrew 2016 - Forum software by © MyBB