Stooney Posted December 7, 2007 Share Posted December 7, 2007 Is there a way for javascript to run a php function? Basically, I'm writing a tv auction application, and one of the pages is what is shown on the tv channel. All the bidding is done via mysql. So what I'm trying to do, is update the current bids on the page, without refreshing. So would there be a way for javascript to run a php function every few seconds to updated the variables containing bids, then use javascript to update the values displayed? Quote Link to comment Share on other sites More sharing options...
trq Posted December 7, 2007 Share Posted December 7, 2007 Is there a way for javascript to run a php function? Yes, its called Ajax. A simple example can be found here, written by the guy who invented php himself. 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.