Page 1 of 1

jquery.gallery

Posted: Thu Jun 20, 2013 11:25 am
by CMSmonkey
I am trying to add the following script to my site:

Code: Select all

	{literal}
<__script__ type="text/javascript">
jQuery.gallery('gallery/Gallery.swf', 'gallery/gallery.xml', {width: '700px', height: '300px', background: 'transparent'});
</__script>
{/literal}
However, I cannot get it to work. It doesn't show errors, it just doesn't show anything. Is there any thing I need to add to it or a plugin I need to download to get this function to work?

Thanks in advance.

Re: jquery.gallery

Posted: Fri Jun 21, 2013 7:14 pm
by Rolf
Are the file paths correct?

Re: jquery.gallery

Posted: Sat Jun 22, 2013 1:20 am
by CMSmonkey
Hi Rolf,
Thanks for the reply.

I used the full URL path. I also used the full URL path of the related js scripts I call in the header of the template. Nothing works.

I've since just called it from an HTML file in my directory and used <__iframe> to display it in my CMSMS site.

Re: jquery.gallery

Posted: Sat Jun 22, 2013 1:16 pm
by psy
If you placed your jq in your gallery tpl it will most likely appear above your call to jq and your page will fail.

What I do is assign js calls in a tpl to a var, eg pagjs.

In my page tpl, I put {$pagejs} at the bottom of my page below the call to jq.

And also delete any js scripts from the gallery.