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

Hello I get a error: Uncaught TypeError: Object [object Object] has no method 'mbGallery in chrome firebug and $("#g3").mbGallery is not a function in Firefox

I understand that there is a problem with conflicting JS and the "$" declaration but i tried everything i could think to get it rolling.

the test page is under www.scytale.pl/pre

Im just starting with JS and Jquery so any help would be appreciated

asked Feb 22 '11 at 10:21

Scytale's gravatar image

Scytale
32

closed Apr 06 '11 at 16:04

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

The question has been closed for the following reason "The question is answered, right answer was accepted" by Matteo Bicocchi Apr 06 '11 at 16:04


hi, i take a look on your code, you should re-engineer your start phase, by example you only need to link ONE jquery ;)

my tip for organize the js scripts is the following:

start-head

  myCSS
  link jQuery
  link other js which is need early
  the document.onready() or $(function() {} where you initialise the mb controls

end-head

  all the html you need

  right here all the other js scripts you need (directly before the body-close-tag)

end-body

i hope you understand what i mean and i don't know if this is the solution for your problem, but after this we can take a second look

answered Feb 25 '11 at 22:05

Abu's gravatar image

Abu
711

Ok we have progress? After arranging hte files in order You presented (Every new thing helps Thanks!) I got this:

$("<div/>").addClass("loader").mb_bringToFront().css is not a function
var galleryLoader= $("<div/>").a...ngToFront().css("opacity",.7).hide();

Thanks for your Help Miles

answered Feb 26 '11 at 04:07

Scytale's gravatar image

Scytale
32

I`ve done IT! :D

The problem was arranging CSS, JS, Functions in proper order and adding CSS for the Gallery manualy

Thanks Abu for Your help!

answered Feb 26 '11 at 08:14

Scytale's gravatar image

Scytale
32

edited Feb 26 '11 at 08:16

Their answers are helpful to you, good luck to you and welcome to true religon jeans.

answered Mar 08 '11 at 02:22

jason's gravatar image

jason
111

jQuery main site - Matteo Bicocchi