Stuck in small window......

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    Stuck in small window......

    Hi,

    I have a page which lists data via asp & database.
    Against each record is a text link. This link opens a window, sized by
    a Javascript function in the link code.

    Problem: All further links from other pages/buttons etc, cause the
    pages to be displayed in the same sized window.
    How can I close the small window and open the next links in full sized
    windows...this is really annoying.

    The size function is only called once from the first page

    <script LANGUAGE="JavaS cript">
    <!--//
    function NewWindow(pagen ame, pwidth, pheight) {
    if (!pwidth) {
    pwidth = 600
    }
    if (!pheight) {
    pheight = 480
    }
    msgWindow=windo w.open(pagename ,"quality","too lbar=no,width=" + pwidth
    + ",height=" + pheight +
    ",directories=n o,status=no,scr ollbars=no,resi zable=no,menuba r=no,
    align = center");
    }
    //-->
    </script>


    Text Hyperlink:

    <a href=javascript :onclick=NewWin dow('blah.asp?J obNumber=" &
    RS("JobNumber" ) & "',450,300)>Bla h Blah</a> </td></tr>"


    What do I need to add to break out of this window. Even submitting a
    simple form later in my code pages via POST method stays in this small
    window.

    Appreciate your help

    David.
  • McKirahan

    #2
    Re: Stuck in small window......

    "David" <david@scene-double.co.uk> wrote in message
    news:c178e3e8.0 410250818.2f4ba 59b@posting.goo gle.com...[color=blue]
    > Hi,
    >
    > I have a page which lists data via asp & database.
    > Against each record is a text link. This link opens a window, sized by
    > a Javascript function in the link code.
    >
    > Problem: All further links from other pages/buttons etc, cause the
    > pages to be displayed in the same sized window.
    > How can I close the small window and open the next links in full sized
    > windows...this is really annoying.
    >
    > The size function is only called once from the first page
    >
    > <script LANGUAGE="JavaS cript">
    > <!--//
    > function NewWindow(pagen ame, pwidth, pheight) {
    > if (!pwidth) {
    > pwidth = 600
    > }
    > if (!pheight) {
    > pheight = 480
    > }
    > msgWindow=windo w.open(pagename ,"quality","too lbar=no,width=" + pwidth
    > + ",height=" + pheight +
    > ",directories=n o,status=no,scr ollbars=no,resi zable=no,menuba r=no,
    > align = center");
    > }
    > //-->
    > </script>
    >
    >
    > Text Hyperlink:
    >
    > <a href=javascript :onclick=NewWin dow('blah.asp?J obNumber=" &
    > RS("JobNumber" ) & "',450,300)>Bla h Blah</a> </td></tr>"
    >
    >
    > What do I need to add to break out of this window. Even submitting a
    > simple form later in my code pages via POST method stays in this small
    > window.
    >
    > Appreciate your help
    >
    > David.[/color]

    Try hitting Ctrl+N to open a new window then resize it.


    Comment

    Working...