Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default closing frameset

    Hi all

    This is my code to open my frameset:
    Dim myOpenWindowJS = "<script
    language='javascript'>myWin=open('Frameset.htm','m ySmallFrameset','width=445
    ,height=350');</script>"

    Response.Write(myOpenWindowJS)

    How do I close the frameset from one of the windows within? Or maybe
    response.redirect to another site.

    Thanks
    Graeme





    Sabre Guest

  2. Similar Questions and Discussions

    1. FRAMESET HELP
      trying my first hand at frames and framesets. I first created a site based on using one frameset, but found that limiting so I learned how to...
    2. Frameset Help Please
      Hi, ive got a problem. I have a four divided frameset. One banner like frame at the top, two right and let menus and one relative center area....
    3. Frameset
      How do you do a frameset in an aspx page? -- ______________________ David Fetrow HelixPoint LLC. http://www.helixpoint.com...
    4. Movie Closing?? & Windows Closing??
      > Can anyone tell me why when I create a projector, it closes after about 10th of a second, it simply opens and closes stright away. Do you have a...
    5. locked into frameset
      I'm working on a coldfusion application in Dreamweaver, primarilly in code view. Somewhere along the way, Dreamweaver got the idea that one of my...
  3. #2

    Default Re: closing frameset

    Graeme,

    You could try either:

    parent.window.close();

    or

    top.window.close();

    Response.Redirect won't work for you because that would always occurr within
    a single frame. You could however open a new window with javascript going to
    the redirect page and then close the opener using code similar to that
    above.

    Sincerely,

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Sabre" <maximNOSPAM@wave.co.nz> wrote in message
    news:e$KjvEYVDHA.2288@TK2MSFTNGP12.phx.gbl...
    > Hi all
    >
    > This is my code to open my frameset:
    > Dim myOpenWindowJS = "<script
    >
    language='javascript'>myWin=open('Frameset.htm','m ySmallFrameset','width=445
    > ,height=350');</script>"
    >
    > Response.Write(myOpenWindowJS)
    >
    > How do I close the frameset from one of the windows within? Or maybe
    > response.redirect to another site.
    >
    > Thanks
    > Graeme
    >
    >
    >
    >
    >

    S. Justin Gengo Guest

  4. #3

    Default Re: closing frameset

    Thanks Justin. parent.window good!
    "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
    news:%238sAM6YVDHA.424@TK2MSFTNGP11.phx.gbl...
    > Graeme,
    >
    > You could try either:
    >
    > parent.window.close();
    >
    > or
    >
    > top.window.close();
    >
    > Response.Redirect won't work for you because that would always occurr
    within
    > a single frame. You could however open a new window with javascript going
    to
    > the redirect page and then close the opener using code similar to that
    > above.
    >
    > Sincerely,
    >
    > --
    > S. Justin Gengo, MCP
    > Web Developer
    >
    > Free code library at:
    > [url]www.aboutfortunate.com[/url]
    >
    > "Out of chaos comes order."
    > Nietzche
    > "Sabre" <maximNOSPAM@wave.co.nz> wrote in message
    > news:e$KjvEYVDHA.2288@TK2MSFTNGP12.phx.gbl...
    > > Hi all
    > >
    > > This is my code to open my frameset:
    > > Dim myOpenWindowJS = "<script
    > >
    >
    language='javascript'>myWin=open('Frameset.htm','m ySmallFrameset','width=445
    > > ,height=350');</script>"
    > >
    > > Response.Write(myOpenWindowJS)
    > >
    > > How do I close the frameset from one of the windows within? Or maybe
    > > response.redirect to another site.
    > >
    > > Thanks
    > > Graeme
    > >
    > >
    > >
    > >
    > >
    >
    >

    Sabre Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139