DanDaBeginner Posted October 16, 2007 Share Posted October 16, 2007 hello gals and guys... really need help.. I need to execute a two ajax request, one will be run for every 5 seconds to check against the database if theres a message that has been sent to the user, if foun then theres a pop-up informing the user that theres a message and one will be viewing message, sending message, etc.. now my problem is since the first request executes every 5 seconds and if the user decided to send a message so there will be two request at the sametime but on different pages, the first one will be sending and fetching to check.php and the second one to send.php.. am I going to have a problem on this one? do you have a better idea on this one? thanks in advance!!! Quote Link to comment Share on other sites More sharing options...
DanDaBeginner Posted October 16, 2007 Author Share Posted October 16, 2007 maybe my previous message was confusing... lets not talk about the messaging, I got AJAX request that executes every 7 seconds to see if somebody commented to his/her blog post, and got a link that when a user clicked an AJAX request will be sent to fetch all the online members... so what will be my question? since I got an AJAX that executes at 7 seconds and the user click on the link because he/she wanted to see who is online at exactly 7 seconds.. so there will be two request at a time... will that be a problem? will it cause an error? please help... Quote Link to comment Share on other sites More sharing options...
markjoe Posted October 23, 2007 Share Posted October 23, 2007 I have 2 AJAX functions that populate drop down menus in the same form, from a database, they end up running at the same time. Each has it's own pair of functions, one to call the php script, and one to handle the response. (same PHP script), it works just fine. 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.