Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

making links in xml

Status
Not open for further replies.

abione

Technical User
Jan 23, 2007
19
GB
Hi can anyone help,
I have created a web photo gallery using flash and xml to load the pictures and all the text on the site are being displayed from the xml but my problem is that I would like to create links hyperlinks within the xml files.
 
so would something like this work:

<section>
<sectioncontent>
<![CDATA[this is my website<url>www.hotmail.com</url>]]></sectioncontent>
</section>
 
hi Can anyone help

this small piece of code in my xml file is not working the way i want it to. it creates a link but the link does not take me to the destination can anyone tell me where i am going wrong

thanks

<![CDATA[this is my <a href="]]>
 
This XML works for me:
Code:
<?xml version="1.0"?>
<section>
   <sectioncontent>this is my website <a href="[URL unfurl="true"]http://www.hotmail.com">www.hotmail.com</a></sectioncontent>[/URL]
</section>
Obviously you have to parse it in a ceratin way in Flash.

Anyway you'll need to add " otherwise Flash thinks it's a local path.

Kenneth Kawamoto
 
Hi I just tried the way you suggested but that does not work either, anyother solutions this is what the actual code looks like:

<section>
<title>links</title>
<sectioncontent><![CDATA[Thank you to the following people for their help and support:
<a href="
<a href="
<a href="
<a href="]]></sectioncontent>
</section>
the links do not take you to the suggested destination but i do get the little hand when you hover ofer the links.
 
all that happens is that you get the little hand when you hover over the links indicating it is a link but when you click with your mouse nothing happens, you are still in the same page.
 
thank you so much it does actuallu work now I feel so stupid i cant belive it i have been wrecking my brain for nearly a week just trying to sort this thing out thanks again

Could I ask just another thing now that I have the links working what can I use to seperate each link so that they sit on there own line and would i do the same procedure for an email address?
 
thanks that works and everything looks great. what do you suggest i do about an email address
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top