andz Posted October 16, 2008 Share Posted October 16, 2008 Good day. I'm a newbie in using javascript. Is there a simple script that will allow me to load text files without refreshing the webpage? To put it on an example, I want my site to have a dynamic advertisement, and the codes for every ads will be saved on a simple text file (example. ads.txt, ads2.txt, ads3.txt). Every txt file will contain 1 advertisement, I need a code in which the script will allow me to view dynamic advertisement by reading all the txt files without refreshing the web page. If possible, could this be bind using php and javascript duo? Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted October 16, 2008 Share Posted October 16, 2008 you could use ajax to read the text file. check out a some ajax tutorial or easier just use some javascript framework to make it easier 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.