This topic is locked

Client before return false

3/30/2014 4:14:23 AM
PHPRunner General questions
G
GunnySJB author

Hello,
I have this code in a button in my client before event code :



if (confirm("U gaat deze bewoner muteren"))

{

return true;

alert("De bewoner wordt gemuteerd");

}

else

{

return false;

alert("De bewerking is afgebroken");

}


I want the action to stop if the user presses cancel, it shows the correct message but it still executes the server code

Does anybody know why ?

Sergey Kornilov admin 3/30/2014

This code looks good to me (except the fact alert messages will be never shown).
If you need more help with this post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.