JDameron91
Mar 23 2007, 04:45 PM
| | Hello, I have recentlty ran into a problem on my website: When a user logs in, it adds him to an active users list in the MySQL database, but if they don't click the "logout" button, and just leave the site, it keeps them in the active users list forever until I manually go into the database and take them out. I heard from a friend that you could use AJAX to find out if the user is active, if he's not and he stays inactive for a certain amount of time, then it will take him out of the active users list. So I go to learn AJAX because all of the other languages I know are easy, this was not so with AJAX; I can't even make a working request to the database!
So what I need is a way for the user that exits the site without clicking the "logout" button to be deleted from the active users list. I would be very happy if you gave me a code, tutorial or even refer me to a helpful site about AJAX. All and any help is greatly appreciated. =] |
Reply
Similar Topics
Keywords : ajax, figure,
- Ajax Request Messing Up Format
need help to figure out a better way to do this. (1)
Ajax Code Need Help Debugging.
(9) I did a tutorial on ajax started to write my own It was all working well under safari but when i
tried to test it out on other broswers it doesnt seem to work at all. I've spend a few hours
already going over it and cant seem to figure it out at this stage. Heres the code that works under
safari function createRequestObject(){ var request_o; //declare the variable to hold the object.
var browser = navigator.appName; //find the browser name if(browser == "Microsoft Internet
Explorer"){ /* Create the object using MSIE's method */ request_o = new ActiveXObj....
Concerns On Ajax With Java
(3) Source article from Sun: http://java.sun.com/developer/technicalArticles/J2EE/AJAX/ Well, from
this article, it shows that Ajax can be achieved with Java using Java Servlets or JSP's. For
those who don't know what AJAX is, it's an object in Javascript technology that allows for
instant communication between client-side and server-side. It's like changing a page's
content without having to reload the whole page. Let's move on... Now when I looked at the JSP
source code, the servlet's function was to simply validate a text and send back a r....
Remote Ajax
Wtf?! (1) Any reason why Ajax doesn't work remotely? It looks almost as if ajax only works if its getting
or sending info from the same server. What gives? could this have anything to do with the possible
abuse of brute force scripts? If so, wouldn't this be a limitation in the browser only? Are
there any browsers that allow remote Ajax? ...or am I doing something wrong? (I left that question
at the end for a reason... I am sure that my script is flawless seeing as it works perfectly if i
try to access something locally, but the second I try something remote, no info ....
Scripting Help On Ajax Shoutbox
(1) HI, I'm currently working on an AJAX web app. It's a shoutbox. I have here attached the .js
file fully documented so it's easy to understand. Problem: An error message alert occurs in IE
6 Help: I need someone who can fix a code so that the error won't show up in IE. Note: I've
tested it under Firefox and Opera and it works very well. Here's the code: /** * ezShout -
AJAX/PHP ShoutBox * by Albert Villaroman * * For help and tutorials on usage, please refer to
manual * * Note: Due to JS lack of standard OOP conventions, treat "Shoutbox....
Ajax: Achieve Ajax Program In 5 Lines Of Code!
(1) Well Last night, after a week of irritation and errors I finally created an easy Javascript object
that easily and quickly allows you to develop an AJAX program in just 5 easy steps! Here's
the link to the object I've created: http://www.demolaynyc.astahost.com/ajaxConn/ajaxConn.js
Download it and read the Readme file that's under the same directory:
http://www.demolaynyc.astahost.com/ajaxConn/Readme.html Basically what this object does is to
connect to a server-side script (".php, .asp, .jsp, etc"), and what ever this script displays is
sent back ....
Ajax Web Apps
(0) Well I just finished learning AJAX and want to start an AJAX web application. the thing is that I
don't know what kind of application I want to work on so I'm asking you guys to come up
with one that will use HTML, CSS, Javascript and PHP. Nothing too big but nothing to small as well.
I'm starting a small ShoutBox. I want a type of application that would be used by companies. I
have a software in mind where companies like Fast Food restaurants could install on their websites
and have customers easily make orders while employees will see incoming orders live....
Ajax And Php
question (9) Hi Dears i want learn Ajax , i know PHP and mysql , i want include ajax interface into my php
projects . but i can not find tutorial about ajax in pixel2life.com or google. i need good tut about
begin ajax and how its work and more samples to use if you have good link about ajax plz post here
And if you about ajax software kit plz post here thanks /smile.gif" style="vertical-align:middle"
emoid=":)" border="0" alt="smile.gif" /> ....
Ajax Shoutbox For Ipb - Beta 2 Release
(4) Hi guys, Here's one of our preview releases of the projects going on under Antilost - an AJAX
based ULTRA-LIGHT (only 20KB) Shoutbox, that works extremely fast and without refreshing your whole
page. Can be easily integrated into IPB - although full integration module not ready yet. A
demonstration can be found at: http://www.antilost.com/community/ Keep in mind that this is a
develpomental release and is not completed yet. As we finish more and more of the coding part, the
subsequent releases will be readily made availabel for download. So make sure you keep c....
Ajax
Anybody else using it? (14) Hi everybody, I'm starting to use AJAX (Asynchronous Javascript And Xml), and it is quite nice
and very cool. I was just wondering if anyone else is using it here yet?? Thanks! ....
Looking for ajax, figure,
|
|
Searching Video's for ajax, figure,
|
advertisement
|
|