Thx mates

On 18 kvě, 23:12, Fontzter <[email protected]> wrote:
> As Miksago suggested, just use document.location.
>
> Dave
>
> $(function() {
>                         $("#dialog-logout").dialog({
>                                 autoOpen: false,
>                                 bgiframe: true,
>                                 resizable: false,
>                                 width: 400,
>                                 modal: true,
>                                 overlay: {
>                                         backgroundColor: '#000',
>                                         opacity: 0.5
>                                 },
>                                 buttons: {
>                                          'Logout': function() {
>                                                 document.location =
> 'modules/logout.php';
>                                           },
>                                         'Cancel': function() {
>                                                 $(this).dialog
> ('close');
>                                         }
>                                 }
>                         });
>
>                 $('#link-logout').click(function() {
>                         $('#dialog-logout').dialog('open');
>                         });
>         });
>
> On May 18, 4:52 pm, "[email protected]" <[email protected]> wrote:
>
> > It doesnt have to be ajax iam a little newbie with js. Ive <a
> > href= ..... id="logout-dialog"> which calls jquery ui dialog and then
> > i want after the click on OK change url to logout script. Please how
> > can i do it ?
>
> > On 18 kvě, 11:28, Miksago <[email protected]> wrote:
>
> > > Why not just use document.location = ...
>
> > > Which probably is the most sound way of redirecting a user to a page
> > > using JS.
>
> > > On May 17, 3:19 am, "[email protected]" <[email protected]> wrote:
>
> > > > 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