Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How To Link Thumbnail To Image

Guest
Oct 30, 2008 Oct 30, 2008
I have a real estate site that is displaying listings. When I create a link from the thumbnail images to the main images (which are the same file just the thumb is sized smaller) my thumbs dissapear. Here is the code I use.

<a href="<%=(rsResi.Fields.Item("IMXA").Value)%>" target="_blank"><img src="<%=(rsResi.Fields.Item("IMXA").Value)%>" border="0" class="imgMyListings"/></a>

The page is located here: http://www.nky-mls.com/listings-by-agent.asp?AgentName=Kevin%20Hildebrand

ASP - CS4 - MS Access
TOPICS
Server side applications
437
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Nov 02, 2008 Nov 02, 2008
For those interested, my problem looks like was the result of having the image path stored into a memo field. Memo fields can only be read once. When I changed the field type to text as directed by somebody who took the time to dig deeper into my problem, everything worked as intended. Moral of the day, don't store image paths in memo fields!

Good Luck All
Translate
Participant ,
Oct 30, 2008 Oct 30, 2008
Never tested anything of this sort but I wonder if there is an issue with an image being linked to itself? Maybe you should try linking the image to a webpage containing an image rather than the image itself?
I'm following this through as it sparks my curiousity.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 31, 2008 Oct 31, 2008
OK... here is whats happening, though I have still not solved the problem. The images along with all the other contents of the page are based on a query. Query has 4 tables, logos, offices, agents, listings. these all pull together on this page based upon using the go to details behavour that sends the ID for the listing.

As you can see from the page, I have one image displaying on the page. In this case IMGA. Below you will see a button that says 'view all images'. If I link that button to IMGB, C, D, etc. no problems, it works. But when it links to image A, for some reason when the page runs in code view you will see the link is void. But in DW's code view the link value is still there.

I really need to solve this badly.......

Thanks All

http://www.nky-mls.com/ListingDetailResi.asp?TListings_ID=96

This Works: Linking to any image not displayed on the page.

<a href="<%=(rsDetail.Fields.Item("IMXB").Value)%>"><img src="hs-images/but_ViewImages.gif" alt="view images" width="78" height="25" class="imglink" /></a>

This Does Not Work: Linking to an image already displayed on the page

<a href="<%=(rsDetail.Fields.Item("IMXA").Value)%>"><img src="hs-images/but_ViewImages.gif" alt="view images" width="78" height="25" class="imglink" /></a>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 02, 2008 Nov 02, 2008
LATEST
For those interested, my problem looks like was the result of having the image path stored into a memo field. Memo fields can only be read once. When I changed the field type to text as directed by somebody who took the time to dig deeper into my problem, everything worked as intended. Moral of the day, don't store image paths in memo fields!

Good Luck All
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines