Hello. Im using ajax call to insertmsg.php to insert a message.
Now javascript isn't a realtime language so i can not count on having an disabling button at the top of the ajax function.
So I wonder how I can make a timelimit to the insertmsg.php with: mysql_query("INSERT INTO.. , with a delay on 2 seconds, without storing last time the user wrote in the database. Or is that the only way? How can I do it with session maybe?