After as much research as possible I don't have a working solution to what seems a simple problem.
I would like to use Jquery Impromptu.
Simple action.
Click on Logout –
<a class="link" href="javascript:;" onclick="logout(1); ">Logout</a>
Prompt 'Are you sure - Yes / No'
If Cancel, Nothing happens. If True go to a url 'logoutscript.php'.
I cannot get my thoughts to work and though I just cannot get my head around it. Any help would be really helpful.
++++++++++++++++++++++++++++++++++
function removeUser(id){
var txt = 'Are you sure you want to Logout?';
$.prompt(txt,{
buttons:{Logout:true, Cancel:false},
callback: function(v,m,f){
<!-- This is wher the problem starts -->
++++++++++++++++++++++++++++++++++
a class="link" href="javascript:;" onclick="removeUser(1); ">Logout</a>