Solved

add link to xml jquery gallery

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Uncaught Type error cannot assign to read only property 6 30
Javascript_Set_dropdown_value 7 40
Customizing jQuery UI Accordion CSS 3 28
QQ problem 22 43
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…
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…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
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.

856 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