0

I am using jConfirm for confirm dialog with success.

Here is the code

<script>  
function DeleteUser(){  
if (window.jConfirm('Etes-vous sur de modifier?')) {  
document.window.dform.submit(); //on envoie le formulaire  
} else {return false;}  
}  
</script>  

<form action="<?php $_SERVER['PHP_SELF']?>" method="post" name="dform " id="dform" onsubmit="return DeleteUser();">  
<input type="submit" value="Modifier" name="modifier"/>  
</form>    

The problem is that the dialog is show but does not wait for user answer and continues.

When change to classic javascript confirm everything works fine!

hakre
  • 193,403
  • 52
  • 435
  • 836
Brawia
  • 33
  • 1
  • 6

1 Answers1

1

the solution is in other similar posts:

jConfirm with this existing code

jConfirm alert - jQuery plugin

Regards

Community
  • 1
  • 1
GoRoS
  • 5,183
  • 2
  • 43
  • 66