PDA

View Full Version : automatically load a .htm to another frame


lpvdsteen
08-17-2004, 06:20 PM
i have a flash link opening a .htm file into 1 of 5 frames on my page, say i have a flash link open "set_index.htm" targeted into "_frame1". Now i want to automatically load "set_1.htm" targeted into "_frame2" without having to link via an href or something. Or, otherwise, I want to have a flash link op more than 1 ".htm" file into different frames.

can this be done?? I have spent at least 3 hours trying out and searching. (don't laugh, I'm new at this game)

Jon Hanlon
08-17-2004, 09:40 PM
In _frame1:
<body onload="parent.frames._frame2.location='set_1.htm'">

lpvdsteen
08-18-2004, 11:01 AM
Thanks,

I have tried using this code, but i can't get it to work. I get a mistake on the page error. I use IE, can that be a problem as i see in other topics that there is a lot of difference between browsers, and, although dreamweaver knows the 'onload' code, it does not have it in its reference files so i can't get help from there.

maybe you or someone else has another idea what the problem and answer could be, i will keep searching for an answer myself and finally maybe give up and start using a table instead of frames.

Luke