Ask questions and get good answers on mb.jQuery.components

Hi, I just downloaded the bgndGallery files. You provide 3 demo html files. demo0 and demo1 work fine, but demo.html does not. This is the version I want to use so if it's not working in the demo I'm not sure how I can get it to work for me. I viewed it in the latest versions of Chrome and Firefox, but had no success. Basically the background images do not appear, but the player navigation seems intact.

asked Aug 15 '11 at 17:12

atomlight's gravatar image

atomlight
1

edited Aug 16 '11 at 16:59

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129


Hi,

In the demo.html file the plug-in is initialized using the "folderPath" property to retreive images using the directory listing. This can work only if the page is served by a web server (locally using "http://localhost/...") and if your web server allow the directory listing. If you want to use and test it locally (file://... or C://...) or within a web server that doesn't allow directory listing than you need to pass the list of images' path as an array via the "images" property as explained in the demo.html file (commented). Hope this clarify the issue.

Bye,

Matteo

answered Aug 16 '11 at 16:59

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

edited Aug 16 '11 at 16:59

Thanks Matteo. Yes, I figured this out after I made the post. It was a little confusing at first. I wonder if most developers would look at the demos and test them locally first, rather them serve them first. I feel like demo.html should be set up by default to test locally first, and can be changed using the "folderPath" property as an alternative once it is being served. By the way, this is a nice little plugin. Thanks!

answered Aug 18 '11 at 18:27

atomlight's gravatar image

atomlight
1

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×6
×1

Asked: Aug 15 '11 at 17:12

Seen: 280 times

Last updated: Aug 18 '11 at 18:27

jQuery main site - Matteo Bicocchi