Dan06 Posted December 2, 2008 Share Posted December 2, 2008 When a certain text is "clicked" a function is supposed to be called. Currently, when the text is clicked the function is not being called and I can't figure out why. Below is the html, css, and js. <div id="logout">Logout</div> body #logout{ position: absolute; top: 80px; right: 15px; cursor: pointer; } body #logout:hover{ position: absolute; top: 75px; right: 15px; font: bold; font-size: 14pt; color:#FF0000; cursor: pointer; } $("#logout").click(function() { logoutCheck(); }); Any thoughts? Quote Link to comment Share on other sites More sharing options...
KevinM1 Posted December 2, 2008 Share Posted December 2, 2008 When a certain text is "clicked" a function is supposed to be called. Currently, when the text is clicked the function is not being called and I can't figure out why. Below is the html, css, and js. <div id="logout">Logout</div> body #logout{ position: absolute; top: 80px; right: 15px; cursor: pointer; } body #logout:hover{ position: absolute; top: 75px; right: 15px; font: bold; font-size: 14pt; color:#FF0000; cursor: pointer; } $("#logout").click(function() { logoutCheck(); }); Any thoughts? What is logoutCheck supposed to do? Quote Link to comment Share on other sites More sharing options...
Dan06 Posted December 3, 2008 Author Share Posted December 3, 2008 logoutCheck determines if session variables that were set during login are still active and if so, unsets and then destroys them, logging the user out of the website. Once the session variables are unset and destroyed, logoutCheck sends the user to the main page. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.