[jQuery] Problem with confirm delete

2008-12-08 Thread james182
my problem is that it won't delete from DB every things else works fine just not the deleting from DB. My Code: $(function() { $('a.delete').click(function() { var user_id = $(this).attr('id'); var thisparam = $(this);

[jQuery] Confirm Deletion

2008-12-06 Thread james182
i need to delete a row from mysql DB, click delete buttonn and fadeout then delete record from DB. HELP PLEASE ... Below is my code: $(document).ready(function() { $("a.delete").click(function() { if (confirm('Are you sure you wa

[jQuery] Re: Confirm Delete from DB

2008-12-04 Thread james182
I really need to get this fixed please help.. am new to jquery. james182 wrote: > > > Okay I'm getting there, how would i combine the delnews javascript to the > jQuery statement? > > [CODE] > > function delnews(user_id, user_firstname){ > if (c

[jQuery] Confirm Delete from DB

2008-12-04 Thread james182
Okay I'm getting there, how would i combine the delnews javascript to the jQuery statement? [CODE] function delnews(user_id, user_firstname){ if (confirm("Are you sure you want to delete '" + user_firstname + "'")) { window.location.href = 'test.php?delnews=' + user_id;