Question on Passing URL Parameters

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Question on Passing URL Parameters

    Thanks in advance for any responses to this question!

    I have a dynamic table (in a master page using javascript and asp) that links
    to a detail page, passing a parameter (the ID of a product) to identify the
    correct row to display in the detail page's recordset. Everything works great.

    I decided I wanted to have this detail page be a "popup" in which I control
    the window properties with javascript.

    The problem I'm having is this: when I put the javascript code (for the popup
    window's properties) in the href of the dynamic table cell that links to the
    detail page, it's no longer passing the parameter properly.

    Here's the code BEFORE the javascript was entered:

    <td width="95" class="product_cell"><div align="center"><a
    href="detail_container.asp?<%= Server.HTMLEncode(MM_keepNone) +
    ((MM_keepNone!="")?"&":"") + "ID=" + rsHDPE.Fields.Item("ID").Value
    %>"><%=(rsHDPE.Fields.Item("image").Value)%></a></div></td>


    As you can see, detail_container.asp is the detail page, and ?<%=
    Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") + "ID=" +
    rsHDPE.Fields.Item("ID").Value %>
    is the asp code that dreamweaver included
    to pass the parameter.

    Now, if I WAS NOT passing a parameter, here's the line including javascript
    code - which I have tested with success - to open the popup window to my
    specifications:

    <td width="95" class="product_cell"><div align="center"><a
    href="javascript:poptastic('detail_container.asp') ;"><%=(rsHDPE.Fields.Item("ima
    ge").Value)%></a></div></td>


    (yeah, poptastic is a silly name for a function, isn't it?)

    But how do I combine these to get the parameter to pass AND control the window
    properties?

    Because this doesn't work:

    <td width="95" class="product_cell"><div align="center"><a
    href="javascript:poptastic('detail_container.asp') ;?<%=
    Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") + "ID=" +
    rsHDPE.Fields.Item("ID").Value
    %>"><%=(rsHDPE.Fields.Item("image").Value)%></a></div></td>


    How can I pull this off? Is my syntax wrong?

    iiinsomniiiac Guest

  2. Similar Questions and Discussions

    1. Passing Parameters To CFC
      I am testing how to return data from a CFC within Flash Forms. I have a simple <cfselect> tag that will hold data returned from a CFC. This CFC...
    2. passing parameters
      Hi Michael, I think you want to modify the links in web control programmatically. You can add several Hyperlink controls to the user control,...
    3. Passing Parameters into NEW()
      Is there any way that the NEW() of a web service can accept parameters ? I would like to pass a boolean to indicate to the webservice that I am in...
    4. Passing parameters to a script
      Pardon the probably simple question, but in trying to find the answer in my books, I have found far more about the subject than I can understand. ...
    5. Help Passing Parameters
      Before going to the third script I'd suggest storing the variables in session variables. Here's how I generally do login scripts. Perhaps have...
  3. #2

    Default Re: Question on Passing URL Parameters

    It is very confusing to see different partial HTML/js code. If you please post
    a URL link to your example page you are working on. It is easier that way,
    where you will get some help more effective and productive way.

    Cheers, DWD

    Deaf Web Designer Guest

  4. #3

    Default Re: Question on Passing URL Parameters

    Of course, if you look at the linked URL, you won't see any of this code,
    right?

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "Deaf Web Designer" <webforumsuser@macromedia.com> wrote in message
    news:eh9hi9$sv8$1@forums.macromedia.com...
    > It is very confusing to see different partial HTML/js code. If you please
    > post
    > a URL link to your example page you are working on. It is easier that way,
    > where you will get some help more effective and productive way.
    >
    > Cheers, DWD
    >

    Murray *ACE* 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