PDA

View Full Version : XML Help - Linking thumbnail to URL


s7mish
10-23-2009, 03:44 AM
Hello,

I am very new to XML and having trouble linking a thumbnail to a URL. The XML is already set up to grab files and pages from the web FTP, but now, I am trying to link to a new site, in a new window.

Here is a piece of what the XML I have. Any help would be greatly appreciated!


<study>
<title>Video Archives</title>
<content><![CDATA[<p></p><br/>]]></content>
<url>http://www.youtube.com/watch?v=boW0tdgKNUE target=_blank</url>
<thumboff>archives/sports/case_studies_tipoff_event_off.jpg</thumboff>
<thumbon>archives/sports/case_studies_tipoff_event_on.jpg</thumbon>
<description>Basketball City hosts "Tip Off" event with Nike and LeBron James</description>
</study>

Alex Vincent
10-23-2009, 08:10 PM
Odd that target=_blank is in the same tag as the URL you're referencing. Is that part of the language's specification?

seco
10-23-2009, 08:16 PM
cant you just put a <a around the thumbnail in the parsing code?

s7mish
10-23-2009, 08:23 PM
Alex - I was looking up some searches on this prior to posting in this forum, so the target _blank I copy and pasted to try because I want it to link in a new window. That sure didn't work...

seco - Do you mind showing me how it should look with the <a around the thumbnail?

Sorry, I'm such a noob. All the thumbnail codes work fine. They show up and do what they're supposed to do, except that it won't link correctly to the URL.

Thanks...really appreciate your help.