Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Dave(UK) #1
Dynamic HTML for IMG SOURCE
DWMX. Hi, I have a recordset with a ProductID field and i am trying to
insert this ProductID into the name if the Source image so it becomes dynamic -
but I am failing miserably ..
This does not work:
<td><img src="Pix/tn_"<%=rsOneProduct.Fields.Item("ProductID")%>".jp g"
width="150" height="200"></td>
This works:
<td><img src="Pix/tn_CDR12345.jpg" width="150" height="200"></td>
Any help appreciated. Thanks. Dave(UK):confused;
Dave(UK) Guest
-
No html source for datagrid
I posted this earlier but this time I am adding a url if you want to see the datagrid. (Use start date of 11/10/2004). Basically I wanted to know... -
open source of a html file
I got my other question wrong. I wrote a script that opens a file and filters out email addresses and urls etc. is there a way to enter a url so... -
How to source an html-page (containing vars)
Hi, I have a CGI-script that needs to print an html-page containing variables dependent on the choise you make. Right now I do this using : ... -
get html source of an URL
Hie, I am trying to write a program doing the following : - I give it an URL (for instance http://www.yahoo.com) - it gets the source of the web... -
How to grab HTML source?
"Mike Darrett" <mike-nospam@darrettenterprises.com> schrieb im Newsbeitrag news:d945119c.0305021419.3f461b9f@posting.google.com... hey mike -... -
delaneypub #2
Re: Dynamic HTML for IMG SOURCE
Probably all those double-quotes causing syntax errors. You need to concatenate
the image source name.
Try adding this between the TD tag and the IMG tag:
<%x = "Pix/tn_" & rsOneProduct.Fields.Item("ProductID") & ".jpg"%>
Then change the vbscript inside the SRC attribute to:
<%=x%>
delaneypub Guest
-
Dave(UK) #3
Re: Dynamic HTML for IMG SOURCE
Hi, yes you were spot on , the "" were causing confusion cos they need not have
been there as part of the concatenation ... this was what I got to work...
thanks .. Dave
<td><img src="Pix/tn_<%=rsOneProduct.Fields.Item("ProductID")%>.jpg"
width="150" height="200"></td>
Dave(UK) Guest



Reply With Quote

