?
Solved

add link to xml jquery gallery

Posted on 2010-09-18
5
Medium Priority
?
518 Views
Last Modified: 2012-05-10
Hello Experts,

I bought a jquery gallery template which uses xml to add the images.  There are default nodes it came with, the xml looks like that attached code.

They are using jquery to put it all together.  If you need more infomration just ask.  I want to know how to add a <a> tag into the <description> tag.

So something like <description>  <a href="www.awesomewebsite.com">Here</a> is an awesome website I designed </description>

I don't code things....so im at your mercy!!!  Please help!
<categories>
		<category id="logo">logos</category>
		<category id="print">print</category>
		<category id="interactive">interactive</category>
		<category id="icon">computer icons</category>
		<category id="webbanner">web banner central</category>
		<category id="personal">personal projects</category>
	</categories>

	<items>
		<item>
			<thumbnail>images/lopSm.jpg</thumbnail>
			<preview>images/lop.jpg</preview>
			<category>logo</category>
			<description>Logo for an online pizza ordering service</description>
		</item>
          </items>

Open in new window

0
Comment
Question by:leena42
  • 3
5 Comments
 
LVL 14

Expert Comment

by:sam2912
ID: 33708408
You will probably need to upload the jQuery gallery code, and possibly the gallery page. A link to the live page might be a better option.
0
 

Author Comment

by:leena42
ID: 33709484
Hi there!  Thanks so much for checking out my questions.


Here is a link to the website

http://www.k-mac.ca/kport/

I think you will have access to the files you need there but I've also attached the xml and js files.

Any light you can shed is greatly appreciated.

jquery.colorbox-min.js
portfolio-setter.js
portfolio.xml
0
 
LVL 22

Accepted Solution

by:
kadaba earned 1500 total points
ID: 33710343
have you tired giving like this in your xml?

<description>
<a href="www.awesomewebsite.com">Here</a> is an awesome website I designed </description>

I just went through the js and since it uses color box I just tried giving a link in the title and worked fine in a colorbox example.

So the same should work for you as well. Just give that and check, I will have a look later on.

Best,
kadaba
0
 

Author Closing Comment

by:leena42
ID: 33710983
Thanks for help,  it wouldn't work by just putting it in how you suggested.

Had to be done like this.... and I don't think that's valid html


<![CDATA[
          this is the site
]]>

note no "" around url.
0
 

Author Comment

by:leena42
ID: 33710985
oops!
<description>
<![CDATA[
          <a href=http://site.com>this is the site</a>
]]></description>

Open in new window

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This article discusses how to implement server side field validation and display customized error messages to the client.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses
Course of the Month13 days, 8 hours left to enroll

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question