Galleria event handling in 3.0.RC1

UI Components for JSF
Post Reply
simishag
Posts: 1
Joined: 14 Dec 2011, 20:45

14 Dec 2011, 21:55

I'm trying to hook Galleria events JavaScript in 3.0.RC1 and I can't seem to figure out the right way to do it. I am following the instructions for Galleria events given at galleria.aino.se.

In 2.2 the following code works as expected:

Code: Select all

jQuery("#gallery").galleria({
	extend: function(options) {					
		this.bind(Galleria.IMAGE, function(e) {
			jQuery("#currentIndex").val(e.index);
			saveIndex();
		});
	}
});
However in 3.0.RC1 I get the error message "jQuery("#gallery").galleria is not a function". Has something changed here? I've tried some other ways of implementing this, such as using widgetVar and then using the .jq property, but this doesn't seem to expose the object in quite the same way.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 43 guests