The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Log out config

2 posters

Go down

Solved Log out config

Post by mmägi Wed 26 Nov - 20:10

Hello

I would like to know dose here is something wrong why it dont work it is my javascript

it should make that if i click log out in my forum it should make popup that asks me are u sure you want to log out

but i added that javascrpit and didnt work maybe it need css or something with it?

Code:
$(document).ready(function() {
var x = document.getElementById('logout');
$(x).click(function(cLogout) {
var y = confirm("Are you sure you want to logout?");
if (y == true) {
return true;
} else { cLogout.preventDefault(); }
});
});


Last edited by mmägi on Wed 26 Nov - 23:05; edited 1 time in total
mmägi
mmägi
Forumember

Male Posts : 402
Reputation : 4
Language : Estonia

http://royal.forumc.net/

Back to top Go down

Solved Re: Log out config

Post by SLGray Wed 26 Nov - 20:42

Where did you get the code from?


Log out config Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51464
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Log out config

Post by mmägi Wed 26 Nov - 20:53

from my old forum
mmägi
mmägi
Forumember

Male Posts : 402
Reputation : 4
Language : Estonia

http://royal.forumc.net/

Back to top Go down

Solved Re: Log out config

Post by SLGray Wed 26 Nov - 21:00

Check to make sure that you copied the code correctly from your old forum.


Log out config Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51464
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Log out config

Post by mmägi Wed 26 Nov - 21:14

it looks correct? for u?
mmägi
mmägi
Forumember

Male Posts : 402
Reputation : 4
Language : Estonia

http://royal.forumc.net/

Back to top Go down

Solved Re: Log out config

Post by SLGray Wed 26 Nov - 23:27

Is this solved?


Log out config Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51464
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Log out config

Post by mmägi Wed 26 Nov - 23:28

nah i just dont want it anymore :S
mmägi
mmägi
Forumember

Male Posts : 402
Reputation : 4
Language : Estonia

http://royal.forumc.net/

Back to top Go down

Solved Re: Log out config

Post by SLGray Wed 26 Nov - 23:30

Garbaged


Log out config Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51464
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum