JonDesign's SmoothGallery 2.0 !

JonDesign's SmoothGallery Forums

You are not logged in.

#1 2010-03-05 01:09:49

sophie30
New member
Registered: 2010-03-05
Posts: 1

javascript doesn't work

Hi,

I have installed smoothgallery in my website. I did exactly all the step of the tutorial but the javascript doesn't works. I have the images like a vertical list. What is the problem?? Thank you for your help!

Offline

 

#2 2010-03-18 10:05:01

rake
Member
Registered: 2009-12-27
Posts: 11

Re: javascript doesn't work

Without showing your code noone will be able to help you...

Give the link to the site, or if it's still in the phase of local host testing, upload the html/css files somewhere and give links here.

Offline

 

#3 2010-03-18 17:58:11

elderk
New member
Registered: 2010-03-18
Posts: 2

Re: javascript doesn't work

Seems I am having the same difficulty with the coding... I am fairly short on javascript skills so I am not even sure where to begin to look for the cause. 

The page (as well as the include page that generates the imageElements divs) reside in the root of the site, the directory structure is only one level deep from the root except for the css folder in the _js_ folder (contains the images and slideshow.css from the smoothgallery package).

When the page is loaded, it displayes ALL of the images single column straight down the page NOT starting the gallery.

The page can be viewed here: http://www.atlasrockcreations.com/jdgallerytest.asp

I would post the code from the page but this posting is limited to 1000 characters and the links generated within the gallery would exceed to limit of 4.

Any help would be GREATLY appreciated!

Offline

 

#4 2010-03-19 06:17:34

sken
New member
Registered: 2009-01-05
Posts: 7

Re: javascript doesn't work

if the images show as a vertical list, it is likely that the actual gallery script is not loaded.
This could be because the path to your .js files is incorrect.

@elderk: I see several mootools files loaded that could conflict with each other.
The error console should give you some clues...

Offline

 

#5 2010-03-19 07:41:16

elderk
New member
Registered: 2010-03-18
Posts: 2

Re: javascript doesn't work

Sken,

Thanks for the response!  I actually got it working this morning... there was a line (from the "how to use it" guide) tht was causing the proble.  The window.addEvent was returning a "startGallery not defined" error.  In doing some research, I found that several installations of this slideshow do NOT use that line so I removed it and wahlah... it works! (aso, you are right tha there are multiple mooools instances in thee and the others are from another gallery that the customer ust was NOT happy with, I will be removing those as well but they were not interfering with this gallery. (at least asfar as "I" can tell!)

Now on to a new issue... the link attached to the image in the gallery is suppossed to open a new window an display a larger instance of the image... it's NOT!  It opens in the same window requiring a user to click "back".  The code fr the element (the href) contains the target="_blank" param but still no luck!

Any suggestions?

Offline

 

#6 2010-03-20 09:51:53

rake
Member
Registered: 2009-12-27
Posts: 11

Re: javascript doesn't work

Don't know whether you fixed it already or not, but for me it opens every picture in new window (checked it at Mozilla).

Offline

 

#7 2010-03-31 05:25:24

Chron
New member
Registered: 2010-03-31
Posts: 1

Re: javascript doesn't work

I can't seem to get it working either (the original issue), I just get a list of all the images and thumbnails I wanted to put in the gallery. I have the Gallery folder in my site directory, but its as if it doesn't know its there when you try to preview the page.

Any details on the directory? Thanks!

Offline

 

#8 2010-04-02 16:03:46

fred!head
New member
Registered: 2010-04-02
Posts: 1

Re: javascript doesn't work

Hi,

I had the same problem (my gallery items displayed simply as a list down the page) and here is what I discovered. The problems I had were due to the sample code differing from the showcase code. Specifically, this line of the Javascript call:

var myGallery = new gallery($('myGallerySet'), {

on this line, myGallerySet needs to be the name of your DIV that wraps around your imageElement DIVs. In the Showcase, it's MyGallery, in the sample code it is MyGallerySet. The Showcase code is useful for figuring out how to turn things on and off but this disparity bit me in the rear. I could not find in the documentation any mention that this bit has to be explicitly set.

Offline

 

#9 2010-04-04 20:27:22

sandro007
New member
Registered: 2010-04-04
Posts: 5

Re: javascript doesn't work

Hi all !

I am having this problem of displaying a vertical line of images at http://www.villaamendoeiras.com.br/newsite/demo.html . I am using the sample code in the download files.
Tried several times to make it work without success. Appreciate if someone could point me the right direction.
Thanks

Offline

 

#10 2010-04-09 21:11:49

one up
New member
Registered: 2010-04-09
Posts: 2

Re: javascript doesn't work

sandro007 wrote:

Hi all !

I am having this problem of displaying a vertical line of images at http://www.villaamendoeiras.com.br/newsite/demo.html . I am using the sample code in the download files.
Tried several times to make it work without success. Appreciate if someone could point me the right direction.
Thanks

check your file names and permissions. a good way to do this is with firefox; 'view > page source' your site and click the links for your css/js files. from what i've seen so far the vertical list of pics problem seems to be js not working right. the sample code on getting started uses an older version of mootools than the current smoothgallery. hope that helps.

Offline

 

#11 2010-04-20 10:45:28

rmatt
New member
Registered: 2010-04-20
Posts: 2

Re: javascript doesn't work

I also had problems with images lining up vertically.

For the part of the script that "calls" it was similar to what the user said above, but my solution varied slightly:

THIS IS WHAT WORKED FOR ME:

var myGallery = new gallery($('myGallerySet'), {

FOR SOME REASON, where it says "new gallery" mine read "new galleryset" - I changed it to read just "new gallery" and then it worked. 

Hope that helps!  -R

Offline

 

#12 2010-04-21 20:52:25

sandro007
New member
Registered: 2010-04-04
Posts: 5

Re: javascript doesn't work

Hi,

I tested the files in another server and it worked so as 'one up' suggested it was actually a file permission problem.

Thank you for your help.

smile

Offline

 

#13 2010-08-27 03:07:48

smoothy
New member
Registered: 2010-08-27
Posts: 4

Re: javascript doesn't work

same prob. but still no solution! <script type="text/javascript">
function startGallery() {
var myGallerySet = new gallerySet($('myGallerySet'), {
timed: false
});
}
window.addEvent('domready', startGallery);
</script>
console shows some errors:
jd.gallery.set.js line 22 'gallery is not defined', line 23 'gallery set is not constructor' line 34 'this.setOption ist not a function'
may be this errorx must be fixed so that the gallery works smoothly?

Offline

 

Board footer