combining Javascript with asp image re-size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fran7
    New Member
    • Jul 2006
    • 229

    combining Javascript with asp image re-size

    Hi, I wonder if anyone can see whats going wrong here.


    I have this line of asp and javascript and it works fine

    Code:
    <a onmouseover="doTooltip(event,'<img src=&quot;<%=Server.URLPathEncode(rsCard("largeimage"))%>&quot; border=&quot;0&quot;><div class=&quot;tp2&quot;></div>' )" onmouseout="hideTip()" href="http://<%=rsCard("DefaultHeadline")%>" onclick="this.target='blank'"><img border="1px" src="<%=Server.URLPathEncode(rsCard("imageone"))%>"  <%=ImageResize(Server.MapPath(rsCard("imageone")), 100, 150)%>></a></font>
    What I am trying to do is add the image resize asp code to the tooltip popup. like so

    Code:
    <a onmouseover="doTooltip(event,'<img src=&quot;<%=Server.URLPathEncode(rsCard("largeimage"))%>&quot; [U]<%=ImageResize(Server.MapPath(rsCard("largeimage")), 100, 150)%>[/U]border=&quot;0&quot;><div class=&quot;tp2&quot;></div>' )" onmouseout="hideTip()" href="http://<%=rsCard("xxxxx")%>" onclick="this.target='blank'"><img border="1px" src="<%=Server.URLPathEncode(rsCard("imageone"))%>"  <%=ImageResize(Server.MapPath(rsCard("imageone")), 100, 150)%>></a></font>
    Unfortunately however I try and tinkle with it I get a javascript error.
    that shows this on the page with the image
    Code:
    ' )" onmouseout="hideTip()" href="http://www.xxx.com" onclick="this.target='blank'">

    Is there some quotes or something else I am missing? I have tried every poss combination but nothing works!
    Any help would be most appreciated.
    Thanks
    Richard
    Last edited by fran7; Mar 3 '08, 03:02 PM. Reason: spelling mistake
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Show the client-side version of this, i.e. how it looks when you view the source in your browser.

    Comment

    • fran7
      New Member
      • Jul 2006
      • 229

      #3
      Hi, thanks for reminding me to do that, yes the problem revealed, the asp is writing in a value in " " instead of &quot;&quot; so throwing up the javascript error.
      Have to look at the asp to see how to do that
      Thanks
      Richard

      Comment

      Working...