|
Home > Archive > IIS ASP > December 2004 > Displaying images in same page
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Displaying images in same page
|
|
| carmen 2004-12-28, 6:06 pm |
| I am trying to convert the following line
Response.Write "<a href=" & imageFilePath & strPicArray(0,x) & "><img
src=" & thumbFilePath & strPicArray(0,x) & "width=""75"" height=""75""></a>"
to something like this
<li><a href="images/heron.gif" onclick="return wrapContent(event, this.href,
400, 400)">link 2</a></li>
when I change the second line to this
Response.Write "<li><a href='"& thumbFilePath & strPicArray(0,x)
&"'"onclick="'"return wrapContent(event, this.href, 106, 131)"'>><img src='"
& thumbFilePath & strPicArray(0,x) & "'width=""75"" height=""75""></a></li>"
I get errors stating Expected end of statement. I'm trying to learn but am
getting stumped on this.
Thanks for any comments that will help
C.
| |
| Ray Costanzo [MVP] 2004-12-28, 6:06 pm |
| Did you miss my answer in your other thread about this from
yesterday?
Ray at work
"carmen" <carmen@iyahoo_Spam.com> wrote in message
news:Ov%2351dP7EHA.3616@TK2MSFTNGP11.phx.gbl...
> I am trying to convert the following line
> Response.Write "<a href=" & imageFilePath & strPicArray(0,x)
& "><img
> src=" & thumbFilePath & strPicArray(0,x) & "width=""75""
height=""75""></a>"
> to something like this
> <li><a href="images/heron.gif" onclick="return wrapContent(event,
this.href,
> 400, 400)">link 2</a></li>
> when I change the second line to this
> Response.Write "<li><a href='"& thumbFilePath &
strPicArray(0,x)
> &"'"onclick="'"return wrapContent(event, this.href, 106,
131)"'>><img src='"
> & thumbFilePath & strPicArray(0,x) & "'width=""75""
height=""75""></a></li>"
>
> I get errors stating Expected end of statement. I'm trying to
learn but am
> getting stumped on this.
> Thanks for any comments that will help
>
> C.
>
>
| |
| carmen 2004-12-28, 6:06 pm |
| I saw your answer and I was able to get it to work. Thanks for the help. I
am now trying to convert it to display another way. I thought I understood
but I confused on writing the output another way.
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:OsQUakP7EHA.3756@TK2MSFTNGP14.phx.gbl...
> Did you miss my answer in your other thread about this from
> yesterday?
>
> Ray at work
>
| |
| Ray Costanzo [MVP] 2004-12-28, 6:06 pm |
| I can see why you're confused. That string is disorienting. :]
Let's try simplifying things by breaking it into pieces. You can
then glue it all back together after the fact if you desire.
Response.Write "<li>"
Response.Write "<a href=""images/heron.gif"" "
Response.Write "onclick=""return wrapContent(event, this.href,400,
400)"""
Response.Write ">link 2</a></li>"
Again though, why Response.Write this at all? Why not just write the
HTML?
%> <--- Note that we're OUT of ASP block [---------
<li><a href="<%=thumbFilePath & strPicArray(0,x)%>" onclick="return
wrapContent(event, this.href, 106, 131)">
<img src="<%=thumbFilePath & strPicArray(0,x)%>" width="75"
height="75"></a></li>
Ray at work
"carmen" <carmen@iyahoo_Spam.com> wrote in message
news:OBrqk2P7EHA.2804@TK2MSFTNGP15.phx.gbl...
> I saw your answer and I was able to get it to work. Thanks for the
help. I
> am now trying to convert it to display another way. I thought I
understood
> but I confused on writing the output another way.
>
>
> "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial>
wrote in
> message news:OsQUakP7EHA.3756@TK2MSFTNGP14.phx.gbl...
>
>
|
|
|
|
|