Solved

add link to xml jquery gallery

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now