Solved

add link to xml jquery gallery

Posted on 2010-09-18
5
507 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 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
This article discusses how to create an extensible mechanism for linked drop downs.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

809 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