PDA

View Full Version : How to refresh frames in a frameset


prentess
11-14-2002, 11:02 AM
Hi
I have a page(frameset) with 4 frames wich automaticly loads external sites (stockmarket-sites)and i like to know how I can automaticly refresh only the frames in this frameset.
So the script has to be on the frameset.

thanks in advance.

glenngv
11-14-2002, 11:15 AM
you refresh a frameset like this:

top.frames["frameNameHere"].location.reload()

that is, if the page the frame is on is in the same domain as yours.
but if it's external as in your case, i think it will throw an permission denied error. It is because of the cross-domain security (http://msdn.microsoft.com/workshop/author/om/xframe_scripting_security.asp) thing.

not sure though, but you can try it :)