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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.