Welcome Guest, Not a member yet? Register   Sign In
Ajax Record Deletion?
#1

[eluser]Corey Freeman[/eluser]
Hey everyone!

I managed to figure out how to add a record via ajax using the following function:

Code:
[removed]
$(document).ready(function() {
$('#new-goal-submit').click(function() {
var msg = $('#new-goal-input').val();
$.post("<?= site_url('dashboard/add') ?>", {message: msg}, function() {
    $('#dashboard').load("<?= site_url('dashboard/ajax') ?>");
    $('#new-goal-input').val('');
});
});
});
[removed]

What I want to know is how I can delete a record also by using ajax. There's not a dynamically generated ID to account for when adding, so I'm kind of stumped. >.<

Help? Smile


Messages In This Thread
Ajax Record Deletion? - by El Forum - 09-18-2010, 11:39 AM
Ajax Record Deletion? - by El Forum - 09-18-2010, 11:54 AM
Ajax Record Deletion? - by El Forum - 04-22-2011, 12:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB