-
Say I have a page with 4 frames: header, list, content and footer
Using webclass I want to do this:
If a user click a button or link in the header frame, I want to update all other frames with new information.
I can't seem to get the webclass write into the correct frames. I tried a few option but what I get is either all content is written into one frame (the header frame since the event was triggered from that frame), or the header frame gets divided again into the four frames (it become frames in frame).
I tried specifying the target frame within the hyperlink but this will only work for updating that one frame, not all three. So I guess I need to do this (specifying the target) from code.
Anyone know how to do this??
-
You need to put some javascript in the page that is opening the other frames, so the javascript runs three seperate refreshes of the target frames, with new locations for each refresh.
Using this method you can refresh any frames your not changing as well..
Tony@Work.
-
Try using a javascript:
<script><!--
function LoadNewFrames(l1,l2,l3,l4) {
// x1, x2, x3 and x4 number (beginning with 0)
// or name of target frame
frames[x1].location = l1;
frames["x2"].location = l2;
frames[x3].location = l3;
frames["x4"].location = l4;
}
//--></script>
You call it this way:
<a href="javascript:LoadNewFrames("location1","location2","location3","location4")" target="_self">HERE</a>
Or when you want to launch the FrameDoc again use target="_top" or target="_parent".
Hope this helps,
Dennis.