Hobbyist_PHPer Posted May 11, 2012 Share Posted May 11, 2012 Hi everyone, I'm new to AJAX, but I thought perhaps this question might fit in here... Currently I have a set up to where my webpage has a meta tag refresh of every 5 seconds, which queries the MySQL database to get the current Availability status of the employees... The employees simply update their status via a form to the MySQL database of, Available, On A Call, or Unavailable... Then that obviously is queried and shown on the webpage for their statuses... So my question is, is there a better way to do this, someway with AJAX perhaps that would make more sense, and if so, could you point me in the right direction? I have Googled by brain off searching for AJAX status buttons, but have yet to find anything... well, that's not Skype related anyway... Link to comment Share on other sites More sharing options...
Jessica Posted May 11, 2012 Share Posted May 11, 2012 It's very easy to do this with jquery. Link to comment Share on other sites More sharing options...
Hobbyist_PHPer Posted May 11, 2012 Author Share Posted May 11, 2012 It's very easy to do this with jquery. Every time you post "It didn't work" without more explanation, God kills a kitten. When you post code without code tags, He just teases a puppy. But it's still sad. And when you reply to a post, the way you did to mine, I want to kill God, because he created you. Link to comment Share on other sites More sharing options...
Jessica Posted May 11, 2012 Share Posted May 11, 2012 You realize YOU are the one asking for help yes? Have you TRIED using jQuery? Had you even heard of it? Is there a reason you're not using it? Did you post any code for us to actually work with? Have you looked at any other javascript libraries? What did you find on google that DIDN'T help and why didn't it? Or are you expecting someone to do it for you? My signature is actually pretty applicable. You've posted a vague problem with no explanation of what code you've tried, or any specifics other than you want to use AJAX. jQuery makes the task you've described very simple. It's up to you to implement it, and when you run into problems, you ask for help and explain where you are stuck, what the desired output is, and what you actually get. Since you're not even there yet, suggesting a library to try is quite applicable. Link to comment Share on other sites More sharing options...
ManiacDan Posted May 11, 2012 Share Posted May 11, 2012 Alright now, everyone calm down. Hobbyist_PHPer, please don't mention that you hate someone who's trying to help you so much it would drive you to deicide. The second part of Jessie's post you quoted was, in fact, part of her standard signature and not necessarily a commentary on you. I'm going to close this thread before this fight escalates. If you try jquery and still have issues with it, please open a new thread with a new problem description in the appropriate area. Link to comment Share on other sites More sharing options...
Recommended Posts