|
-
Oct 13th, 2000, 03:52 AM
#1
Thread Starter
New Member
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.
-
Oct 13th, 2000, 04:12 AM
#2
Frenzied Member
OK here's one way:
when you write the contents of frame 2 write a function including the original query string
Code:
<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:
Code:
<Input Type=button onClick="parent.frame2.reloadme()" value="reload frame2">
-
Oct 15th, 2000, 07:44 PM
#3
Thread Starter
New Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|