Forum Moderators: open

Message Too Old, No Replies

Auto refreshing Frame

how to make it

         

benevolent001

2:59 pm on Jun 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi

I forgot how to use frames , although i started like everyone using the same

Here is what i want to do

I want to see a website page constantly as it is updated for example lets say our RECENT POSTS in WebmasterWorld ( i know it refresh but lets say it doesnt )

I want to make local webpage on my computer which will have two frames

Top frame will have . WebmasterWorld recent threads

and bottom frame will have the latest threads page which will update automatically after some time

How do i make this using frames?

Thanks

JAB Creations

6:00 pm on Jun 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is a functional request and therefor should be posted in the JavaScript forum.

It's been some time since I've worked with frames in conjunction with JavaScript but you could do one of two things.

You can either automatically load a page via a function or you could have the user trigger trigger the function.

var myTimeout;

function timedchange(id, newClass)
{
myTimeout = window.setTimeout(function() {parent.main.location.href = file.html;}, 400);
}

parent.main is a reference to a frame named 'main'.

<frame name="main"

...in example.

You can put this inside of an onload function or call the function on an action such as <element onaction="myTimeout;".

Hope this helps.

- John