The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Log out config

View previous topic View next topic Go down

Solved Log out config

Post by mmägi on 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
Forumember

Male Posts : 402
Reputation : 3
Language : Estonia

http://royal.forumc.net/

Back to top Go down

Solved Re: Log out config

Post by SLGray on November 26th 2014, 8:42 pm

Where did you get the code from?


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


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Log out config

Post by mmägi on November 26th 2014, 8:53 pm

from my old forum

mmägi
Forumember

Male Posts : 402
Reputation : 3
Language : Estonia

http://royal.forumc.net/

Back to top Go down

Solved Re: Log out config

Post by SLGray on November 26th 2014, 9:00 pm

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


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


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Log out config

Post by mmägi on November 26th 2014, 9:14 pm

it looks correct? for u?

mmägi
Forumember

Male Posts : 402
Reputation : 3
Language : Estonia

http://royal.forumc.net/

Back to top Go down

Solved Re: Log out config

Post by SLGray on November 26th 2014, 11:27 pm

Is this solved?


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


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Log out config

Post by mmägi on November 26th 2014, 11:28 pm

nah i just dont want it anymore :S

mmägi
Forumember

Male Posts : 402
Reputation : 3
Language : Estonia

http://royal.forumc.net/

Back to top Go down

Solved Re: Log out config

Post by SLGray on November 26th 2014, 11:30 pm

Garbaged


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


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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