Results 1 to 3 of 3

Thread: frameset problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    3

    Angry

    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.

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    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">
    Mark
    -------------------

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    3
    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
  •  



Click Here to Expand Forum to Full Width