Passing URL info to pop-up window? ASP...

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Passing URL info to pop-up window? ASP...

    Hi, I'm working on an ecommerce site and want to add the ability for people to
    click the product image to see an enlarged pic in a pop-up window. The site is
    dynamic, so the pop-up needs to grab the product ID# from the parent's URL and
    show the corresponding image. How do I get that value into the pop-up? I can
    open a new target window and pass the URL value okay, but then I don't have
    control over the size of the new window. When I open a window with js, I can't
    manage to pass the product ID to the new window. I'm sure I am missing
    something simple. Any suggestions? Thanks!

    lunaboyd Guest

  2. Similar Questions and Discussions

    1. Passing some info to a control at runtime.
      Hi all, I've made a user control and I need to pass it some information so it knows what it should display. Can anyone tell me what i need to do...
    2. swf able to see info about javascript window?
      Let's say I have a _root movie playing in a browser and I invoke an action to open a new named JavaScript browser window. Into this new window an...
    3. passing user name info to protected page
      Hello. Newbie question I'm sure. I've got this page I am securing with a password using a simple LOGIN.ASPX page: <%@ Page Language="VB" %>...
    4. Help ::::: Passing info from flash to director getting mad results
      I'm aving a bit of trouble with flash passing info to director using getURL with event: Here's my problem : Three movies in flash called ...
    5. passing variable info
      This is similar to George Mizzel's problem, maybe? I am trying to pass some info from one page to another. The first page is a booking form, the...
  3. #2

    Default Re: Passing URL info to pop-up window? ASP...

    > Hi, I'm working on an ecommerce site and want to add the ability for
    people to
    > click the product image to see an enlarged pic in a pop-up window. The
    site is
    > dynamic, so the pop-up needs to grab the product ID# from the parent's URL
    and
    > show the corresponding image. How do I get that value into the pop-up?
    The easiesy way is to generate the link dynamically so you can pass the
    variable via a querystring:

    <a href="largeview.asp?id=123">view large version</a>

    Then grab the querystring in the 'largeview.asp' page.

    -Darrel


    darrel Guest

  4. #3

    Default Re: Passing URL info to pop-up window? ASP...

    Darrel, Thanks. I tried this before, but it opens another full-size browser
    window, and I need to launch a 600x600 pop-up instead. Is there a way to
    control the size of the largeview.asp page after it opens? If not, my dilemma
    remains... how to open a pop-up using javascript, and then somehow pass the
    product ID into that new window. Emily

    lunaboyd Guest

  5. #4

    Default Re: Passing URL info to pop-up window? ASP...

    > Darrel, Thanks. I tried this before, but it opens another full-size
    browser
    > window, and I need to launch a 600x600 pop-up instead. Is there a way to
    > control the size of the largeview.asp page after it opens? If not, my
    dilemma
    > remains... how to open a pop-up using javascript, and then somehow pass
    the
    > product ID into that new window. Emily
    ASP:

    <% dim productID as string = 12938 %>

    <a href="page.html?<%=productID%>"
    onClick="window.open('page.html?<%=productID%>',
    'windowname','toolbar=no,location=no,directories=n o,status=no,menubar=no,scr
    ollbars=yes,resizable=yes,copyhistory=no,width=300 ,height=290');return
    false;">Your link</a>

    -Darrel


    darrel 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