Loading a given URL on a below frame each amount of time

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
masterblaster
Forum Newbie
Posts: 10
Joined: Mon Jul 25, 2011 11:33 am

Loading a given URL on a below frame each amount of time

Post by masterblaster »

I need some php code that loads a page in a below frame, each amount of minutes specified in a textbox, for example

Code: Select all

---------------------------------------
| URL: (textbox)                       |
| interval: (textbox)                 |
| Submit button                        |
---------------------------------------
|                               |
|     Loaded page                     |
---------------------------------------
There is no need to show any frame or anything, just be able to modify the url and interval at any moment and apply with a Submit.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Loading a given URL on a below frame each amount of time

Post by Christopher »

Use setInterval() in the parent window to run a timer callback to refresh the child frame. Then use the change event on the interval field to clear and restart the timer.
(#10850)
Post Reply