Click to See Complete Forum and Search --> : frameset problem
appleben
Oct 13th, 2000, 03:52 AM
hi .. ,in the HTML page , I divid it into 2 frames, in the 1st frame I want to refresh the 2nd frame with it's origin querystring, but I don't want pass parament(such as querystring) between the two frames, are there some easy way to control that.
just like window.parent.frames(2).?????
thanks in advance.
Mark Sreeves
Oct 13th, 2000, 04:12 AM
OK here's one way:
when you write the contents of frame 2 write a function including the original query string
<head>
<script language=javascript>
function reloadme(){
parent.frame2.location="/whatever.asp?arg1=blah"
}
</script>
</head>
then in the file in frame1 you can do this:
<Input Type=button onClick="parent.frame2.reloadme()" value="reload frame2">
appleben
Oct 15th, 2000, 07:44 PM
I get the answer, it's easy very much. just the statement:
window.parent.frames(1).location = window.parent.frames(1).location;
the window will fire some events to reload the frame, but I hope more directly to call the event, but I can't find it.
thanks in advances.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.