Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
iiinsomniiiac #1
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
-
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... -
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,... -
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... -
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. ... -
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... -
Deaf Web Designer #2
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
-
Murray *ACE* #3
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



Reply With Quote

