Java Script pop-up

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

    #1

    Java Script pop-up

    Hello,

    I am having an issue with this java code for a pop-up.

    window.open('cl ientsCreate.asp x',null,','_bla nk,height=350,w idth=750,menuba r
    =no,status=no,t oolbar=no')

    I need the ability to open several of the same page. For example, when the
    link is clicked with this code the page opens fine, however, on subsequent
    pages it opens in the last new window, not a truely new one.
    i.e
    --
    1.Page 1 Hyperlink is clicked
    2.clients.Creat e.aspx opens in a new window
    3.Page 1 Hyperlink is clicked again
    4. the clientsCreate.a spx is loaded into step No. 2 window.

    TIA,

    Steve Wofford



  • Vidar Petursson

    #2
    Re: Java Script pop-up

    Hi

    If you don't give it a name a new window should open
    window.open('cl ientsCreate.asp x',null,'height =350,width=750, menubar=no,stat u
    s=no,toolbar=no ')
    You had an extra ',' and _blank is invalid in this context... should work
    like above

    More info
    http://msdn.microsoft.com/library/de...ods/open_0.asp

    --
    Best Regards
    Vidar Petursson
    =============== ===============
    Microsoft Scripting MVP
    http://www.microsoft.com/technet/scriptcenter
    =============== ===============
    "IntraRELY" <IntraRELY@yaho o.com> wrote in message
    news:upTbNdNaDH A.384@TK2MSFTNG P12.phx.gbl...[color=blue]
    > Hello,
    >
    > I am having an issue with this java code for a pop-up.
    >
    >[/color]
    window.open('cl ientsCreate.asp x',null,','_bla nk,height=350,w idth=750,menuba r[color=blue]
    > =no,status=no,t oolbar=no')
    >
    > I need the ability to open several of the same page. For example, when the
    > link is clicked with this code the page opens fine, however, on subsequent
    > pages it opens in the last new window, not a truely new one.
    > i.e
    > --
    > 1.Page 1 Hyperlink is clicked
    > 2.clients.Creat e.aspx opens in a new window
    > 3.Page 1 Hyperlink is clicked again
    > 4. the clientsCreate.a spx is loaded into step No. 2 window.
    >
    > TIA,
    >
    > Steve Wofford
    > www.IntraRELY.com
    >
    >[/color]


    Comment

    • Steve C. Orr, MCSD

      #3
      Re: Java Script pop-up

      You should give it a new name for each window.
      In your example you're using the same window (named "_blank") each time.

      --
      I hope this helps,
      Steve C. Orr, MCSD

      Hire top-notch developers at http://www.able-consulting.com



      "IntraRELY" <IntraRELY@yaho o.com> wrote in message
      news:upTbNdNaDH A.384@TK2MSFTNG P12.phx.gbl...[color=blue]
      > Hello,
      >
      > I am having an issue with this java code for a pop-up.
      >
      >[/color]
      window.open('cl ientsCreate.asp x',null,','_bla nk,height=350,w idth=750,menuba r[color=blue]
      > =no,status=no,t oolbar=no')
      >
      > I need the ability to open several of the same page. For example, when the
      > link is clicked with this code the page opens fine, however, on subsequent
      > pages it opens in the last new window, not a truely new one.
      > i.e
      > --
      > 1.Page 1 Hyperlink is clicked
      > 2.clients.Creat e.aspx opens in a new window
      > 3.Page 1 Hyperlink is clicked again
      > 4. the clientsCreate.a spx is loaded into step No. 2 window.
      >
      > TIA,
      >
      > Steve Wofford
      > www.IntraRELY.com
      >
      >[/color]


      Comment

      • Vidar Petursson

        #4
        Re: Java Script pop-up

        Hi

        if for any reason it does not work assign it a random name

        function doIt(sPageToGo) {
        var d = new Date();
        window.open(sPa geToGo,"myWin" + d.getHours() + d.getMinutes() +
        d.getSeconds(), "SPECS HERE");
        }

        --
        Best Regards
        Vidar Petursson
        =============== ===============
        Microsoft Scripting MVP
        http://www.microsoft.com/technet/scriptcenter
        =============== ===============
        "Steve C. Orr, MCSD" <Steve@Orr.ne t> wrote in message
        news:O2htVrNaDH A.1492@TK2MSFTN GP12.phx.gbl...[color=blue]
        > Nevermind, it looks like Vidar is right. I hadn't noticed your misplaced
        > comma situation.
        >
        > --
        > I hope this helps,
        > Steve C. Orr, MCSD
        > http://Steve.Orr.net
        >
        >
        >
        > "Steve C. Orr, MCSD" <Steve@Orr.ne t> wrote in message
        > news:%23wudcmNa DHA.1488@TK2MSF TNGP12.phx.gbl. ..[color=green]
        > > You should give it a new name for each window.
        > > In your example you're using the same window (named "_blank") each time.
        > >
        > > --
        > > I hope this helps,
        > > Steve C. Orr, MCSD
        > > http://Steve.Orr.net
        > > Hire top-notch developers at http://www.able-consulting.com
        > >
        > >
        > >
        > > "IntraRELY" <IntraRELY@yaho o.com> wrote in message
        > > news:upTbNdNaDH A.384@TK2MSFTNG P12.phx.gbl...[color=darkred]
        > > > Hello,
        > > >
        > > > I am having an issue with this java code for a pop-up.
        > > >
        > > >[/color]
        > >[/color]
        >[/color]
        window.open('cl ientsCreate.asp x',null,','_bla nk,height=350,w idth=750,menuba r[color=blue][color=green][color=darkred]
        > > > =no,status=no,t oolbar=no')
        > > >
        > > > I need the ability to open several of the same page. For example, when[/color][/color]
        > the[color=green][color=darkred]
        > > > link is clicked with this code the page opens fine, however, on[/color][/color]
        > subsequent[color=green][color=darkred]
        > > > pages it opens in the last new window, not a truely new one.
        > > > i.e
        > > > --
        > > > 1.Page 1 Hyperlink is clicked
        > > > 2.clients.Creat e.aspx opens in a new window
        > > > 3.Page 1 Hyperlink is clicked again
        > > > 4. the clientsCreate.a spx is loaded into step No. 2 window.
        > > >
        > > > TIA,
        > > >
        > > > Steve Wofford
        > > > www.IntraRELY.com
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        Working...