Jump to content

simple javascript for dynamic load of textfile


andz

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.