Professional Web Applications Themes

Java Script pop-up - ASP.NET General

Hello, I am having an issue with this java code for a pop-up. window.open('clientsCreate.aspx',null,','_blank,he ight=350,width=750,menubar =no,status=no,toolbar=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.Create.aspx opens in a new window 3.Page 1 Hyperlink is clicked again 4. the clientsCreate.aspx is loaded into step No. 2 window. TIA, Steve Wofford www.IntraRELY.com...

  1. #1

    Default Java Script pop-up

    Hello,

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

    window.open('clientsCreate.aspx',null,','_blank,he ight=350,width=750,menubar
    =no,status=no,toolbar=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.Create.aspx opens in a new window
    3.Page 1 Hyperlink is clicked again
    4. the clientsCreate.aspx is loaded into step No. 2 window.

    TIA,

    Steve Wofford
    www.IntraRELY.com


    IntraRELY Guest

  2. #2

    Default Re: Java Script pop-up

    Hi

    If you don't give it a name a new window should open
    window.open('clientsCreate.aspx',null,'height=350, width=750,menubar=no,statu
    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/default.asp?url=/workshop/author/dhtml/reference/methods/open_0.asp

    --
    Best Regards
    Vidar Petursson
    ==============================
    Microsoft Scripting MVP
    http://www.microsoft.com/technet/scriptcenter
    ==============================
    "IntraRELY" <com> wrote in message
    news:phx.gbl... 
    window.open('clientsCreate.aspx',null,','_blank,he ight=350,width=750,menubar 


    Vidar Guest

  3. #3

    Default 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
    http://Steve.Orr.net
    Hire top-notch developers at http://www.able-consulting.com



    "IntraRELY" <com> wrote in message
    news:phx.gbl... 
    window.open('clientsCreate.aspx',null,','_blank,he ight=350,width=750,menubar 


    Steve Guest

  4. #4

    Default 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(sPageToGo,"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" <net> wrote in message
    news:phx.gbl... 
    > >[/ref]
    >[/ref]
    window.open('clientsCreate.aspx',null,','_blank,he ight=350,width=750,menubar [/ref]
    > the [/ref]
    > subsequent 
    > >
    > >[/ref]
    >
    >[/ref]


    Vidar Guest

Similar Threads

  1. help with java script
    By mokitty in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: August 5th, 03:34 PM
  2. Replies: 2
    Last Post: February 5th, 03:33 PM
  3. Mac and Java Script?
    By Bill ODonnell in forum ASP
    Replies: 1
    Last Post: September 26th, 07:55 PM
  4. Do you need to use Java script in ASP .Net?
    By Jerry in forum ASP.NET General
    Replies: 3
    Last Post: July 7th, 12:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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