popup window changes host page to [object]

Discussion in 'ASP General' started by mmac, Jan 26, 2004.

  1. mmac

    mmac Guest

    When I use this command in a webpage

    Response.Write "<a
    href=""javascript:window.open('events/EventDetails.asp?EventID=" &
    theEventID & "' )"">" & theLinkText & "</a>"

    I get the new window to open but it also affects the "host" window. The
    "host" window is left with the word "[object]" in it.

    If I refresh the window that says [object] the new window opens again.

    Why and how can I make the new window open without affecting the previous
    one?
    mmac, Jan 26, 2004
    #1
    1. Advertising

  2. mmac

    mmac Guest

    OK, I am still trying to figure out where asp and the javascript begins ..
    I'll look that direction.
    Thanks you for the help.
    Do you know where a javascript NG can be found?


    "TomB" <> wrote in message
    news:...
    > This would be a javascript/client-side question having nothing to do with
    > asp.
    > <a href="javascript........" onClick="return false;">I think that's
    > right</a>
    >
    > "mmac" <> wrote in message
    > news:...
    > > When I use this command in a webpage
    > >
    > > Response.Write "<a
    > > href=""javascript:window.open('events/EventDetails.asp?EventID=" &
    > > theEventID & "' )"">" & theLinkText & "</a>"
    > >
    > > I get the new window to open but it also affects the "host" window. The
    > > "host" window is left with the word "[object]" in it.
    > >
    > > If I refresh the window that says [object] the new window opens again.
    > >
    > > Why and how can I make the new window open without affecting the

    previous
    > > one?
    > >
    > >

    >
    >
    mmac, Jan 27, 2004
    #2
    1. Advertising

  3. "mmac" wrote:
    >
    > Do you know where a javascript NG can be found?


    microsoft.public.scripting.jscript


    --
    Dave Anderson

    Unsolicited commercial email will be read at a cost of $500 per message. Use
    of this email address implies consent to these terms. Please do not contact
    me directly or ask me to contact you directly for assistance. If your
    question is worth asking, it's worth posting.
    Dave Anderson, Jan 27, 2004
    #3
  4. mmac

    TomB Guest

    This would be a javascript/client-side question having nothing to do with
    asp.
    <a href="javascript........" onClick="return false;">I think that's
    right</a>

    "mmac" <> wrote in message
    news:...
    > When I use this command in a webpage
    >
    > Response.Write "<a
    > href=""javascript:window.open('events/EventDetails.asp?EventID=" &
    > theEventID & "' )"">" & theLinkText & "</a>"
    >
    > I get the new window to open but it also affects the "host" window. The
    > "host" window is left with the word "[object]" in it.
    >
    > If I refresh the window that says [object] the new window opens again.
    >
    > Why and how can I make the new window open without affecting the previous
    > one?
    >
    >
    TomB, Jan 27, 2004
    #4
  5. mmac

    mmac Guest

    Oh... I thought it was dropped after the fight with Sun.
    Thanks again.
    Love the sig line!

    "Dave Anderson" <> wrote in message
    news:%23XgtK%...
    > "mmac" wrote:
    > >
    > > Do you know where a javascript NG can be found?

    >
    > microsoft.public.scripting.jscript
    >
    >
    > --
    > Dave Anderson
    >
    > Unsolicited commercial email will be read at a cost of $500 per message. Use
    > of this email address implies consent to these terms. Please do not contact
    > me directly or ask me to contact you directly for assistance. If your
    > question is worth asking, it's worth posting.
    >
    >
    mmac, Jan 29, 2004
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. William F. Robertson, Jr.

    Re: user control making changes to host page

    William F. Robertson, Jr., Jul 15, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    362
    William F. Robertson, Jr.
    Jul 15, 2003
  2. Jerry Qu
    Replies:
    1
    Views:
    471
    lee atkinson
    Feb 20, 2009
  3. Jens Peter Hansen
    Replies:
    7
    Views:
    521
    Randy Webb
    Jun 19, 2004
  4. Raffi
    Replies:
    4
    Views:
    218
    Dr John Stockton
    Aug 12, 2004
  5. Replies:
    2
    Views:
    460
Loading...

Share This Page