[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

add link to xml jquery gallery

Posted on 2010-09-18
5
Medium Priority
?
515 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

Question has a verified solution.

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

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
This article discusses how to implement server side field validation and display customized error messages to the client.
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)
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

656 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