We help IT Professionals succeed at work.
Get Started

Help upgrading sliding tabs to mootools 1.3

flynny asked
Last Modified: 2012-08-13
Hi All,

I am trying to upgrade the sliding tabs class to mootools 1.3 for a sit eI am developing.

Now there seems to be an issue with the change to method;

 // to change to a specific tab, call this, argument is the pane element you want to switch to.
    changeTo: function(element, animate) {
      if ($type(element) == 'number') {element = this.panes[element - 1];};
      if (!$defined(animate)) {animate = true;};
      var event = { cancel: false, target: $(element), animateChange: animate };
      this.fireEvent('change', event);
      if (event.cancel == true) { return; };
      if (this.buttons) { this.buttons[this.current].removeClass(this.options.activeButtonClass); };
      this.current = this.panes.indexOf($(event.target));
      if (this.buttons) { this.buttons[this.current].addClass(this.options.activeButtonClass); };
      if (event.animateChange) {
      } else {
        this.outerSlidesBox.scrollTo(this.current * this.outerSlidesBox.offsetWidth.toInt(), 0);
         //if (this.options.animateHeight);
          if (this.options.animateHeight){

it seems to be randomly ignoring some transitions?

any ideas whats going on. A live example can be seen here http://dev.mfitonline.co.uk

thanks in advance guys.

Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE