Welcome Guest, Not a member yet? Register   Sign In
how to delete my entry in ajax way
#1

[eluser]Wondering Coder[/eluser]
Hello to all CI fans,

I'm having a bit of trouble in implementing it using ajax call. What I want is to delete an entry/data in ajax. I know that I can achieve this using jQuery library, but I'm pretty novice in writing codes in javascript.

my controller function
Code:
function delete()
    {
        $item = $this->input->post('item');
        if($message_data != NULL) {
            $this->db->delete('messaging',array('messaging_id'=>$item));
        } else{
            redirect('messaging/view');}
    }

my view
Code:
<div align='right' style='float: right;'><a href='' id='del_comment' class='del_comment'></a></div>


Messages In This Thread
how to delete my entry in ajax way - by El Forum - 07-17-2011, 10:19 AM
how to delete my entry in ajax way - by El Forum - 07-17-2011, 08:28 PM
how to delete my entry in ajax way - by El Forum - 07-18-2011, 07:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB