Page 1 of 1

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

Posted: Fri Dec 28, 2012 9:35 am
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.

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

Posted: Fri Dec 28, 2012 11:27 am
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.