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 November 26th 2014, 8:10 pm

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 November 26th 2014, 11:05 pm; 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 November 26th 2014, 8:42 pm

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 November 26th 2014, 8:53 pm

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 November 26th 2014, 9:00 pm

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 November 26th 2014, 9:14 pm

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 November 26th 2014, 11:27 pm

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 November 26th 2014, 11:28 pm

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 November 26th 2014, 11:30 pm

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


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