cry of war Posted February 4, 2008 Share Posted February 4, 2008 ok i know that there is a way to get your webpage to update through ajax when "you" do an action and the javascript runs the http request but is there away to make ajax update your page when you or someone else clicks on the webpage before you can? example, correct me if i am wrong. you<click>=>http request=> server query=>update webpage you<click>\ /Your page Updated OR >=>http request=> server query=> And they<click>/ \Their page Updated If you could provide a link that would be great. Or if you could explain the concept to me that would be good too. This is so users can fight inbetween say a bid so they dont have to reload the page every 10 sec and only when another person bid higher. Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted February 5, 2008 Share Posted February 5, 2008 You would need to run a ajax function that checks your database every X number of seconds; that checks your database for new bids. Set another ajax function up too check if there is a new bid in your database; update your page if there is or otherwise do nothing. Quote Link to comment Share on other sites More sharing options...
cry of war Posted February 7, 2008 Author Share Posted February 7, 2008 thats the point i dont know what X needs to be to be less on bandwidth and still be usefull i was thinking about doing an auto inc. query so its looking for a item thats not there untill it is and use a ready stat 4 on that do you think that would work? Quote Link to comment Share on other sites More sharing options...
haku Posted February 7, 2008 Share Posted February 7, 2008 As far as I know (which is a fair bit, though by no means everything), the only way to do it is how phpQuestioner said. 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.