CASE 2 should be the correct one ... you should continue from there and debug
1. Is the function actually being called?
2. Does it start the Ajax request
3. Does the Ajax request return with the correct result
4. Does the confirm() come up
5. Finally: Does the .submit() actually do anything?
Right now, obviously it doesn't reach step 5 ... but you can only find out through debugging