RealDrift Posted December 25, 2008 Share Posted December 25, 2008 Hi, i have been googling the xmlhttprequest function and i found this tutorial: http://www.openhosting.co.uk/articles/webdev/5899/ at the end of that tutorial it shows how i can click a link and display new info. Is there any way I dnt have to click a link and still be able to pull info from a php file and not a .txt one? please could somebody help me with this. thanks Quote Link to comment Share on other sites More sharing options...
tomfmason Posted December 25, 2008 Share Posted December 25, 2008 All you should have to do is place the newcontent.txt with yourscript.php. Like this function getNewContent(){ http.open('get','yourscript.php'); http.onreadystatechange = updateNewContent; http.send(null); return false; } 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.