Hi pls i want to logout user after confirming modal logout dialog.
Looks like this :

$(function() {
                        $("#dialog-logout").dialog({
                                autoOpen: false,
                                bgiframe: true,
                                resizable: false,
                                width: 400,
                                modal: true,
                                overlay: {
                                        backgroundColor: '#000',
                                        opacity: 0.5
                                },
                                buttons: {
                                         'Logout': function() {
                                             var self = $(this);

// HERE I NEED GO TO URL FOR LOGOUT  "modules/logout.php";

                                                $(this).dialog('close');

                                          },
                                        'Cancel': function() {
                                                $(this).dialog('close');
                                        }
                                }
                        });

                $('#link-logout').click(function() {
                        $('#dialog-logout').dialog('open');
                        });
        });


I've found in past some code like $.ajax({ url: ""; but i cant figure
it out pls help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to