Fx.Slide Guide

a place to get help

Moderator: 1.2 Moderators

Forum rules
  • Every time you need help create a new thread (but please use the search function before, as your problem maybe has already been solved)
  • use code highlighting (help)
  • After your problem has been solved you have to rename the subject to "[solved] <Topicname>" AND set the Topic icon as solved (the green check)

Re: Fx.Slide guide

Postby dailce on Fri Oct 31, 2008 4:46 pm

javiercviegas wrote:How strange! If i use the last version of mootools.js (1.2.1 core) downloaded from here it doesn´t work at all, and if i use the example js it works, but it doesn´t show all the info. What am i doing wrong?


Am I the only one that thinks there may be a problem with 1.2.1?
help12/sliding-tabs-mootools-t329-10.html
dailce
 
Posts: 8
Joined: Fri Sep 26, 2008 1:54 am

Re: Fx.Slide guide

Postby drcosmo on Mon Nov 03, 2008 7:47 pm

Very nice tutorial. I have two more questions:

*/ When I open the page, none of the div's are displayed. How can i open the first by default?
*/ I have a little navigation-menu. I use the id "current" on my li-item to indicate the current item. How can i remove the current on the first item when another is clicked (and add the current id to the new item)?


Thanks in advance!
drcosmo
 
Posts: 1
Joined: Mon Nov 03, 2008 7:43 pm

Re: Fx.Slide guide

Postby linux4me on Tue Nov 04, 2008 3:26 am

drcosmo wrote:Very nice tutorial. I have two more questions:

*/ When I open the page, none of the div's are displayed. How can i open the first by default?
*/ I have a little navigation-menu. I use the id "current" on my li-item to indicate the current item. How can i remove the current on the first item when another is clicked (and add the current id to the new item)?


Thanks in advance!


Oooh! I can actually help someone else!

If you want to display the first div, just put:
  1.    contents[0].slide('in');

in there right after the line:
  1. contents.slide('hide');


Conversely, if you wanted to show the last div, you could use:
  1.    contents.getLast().slide('in');


It works in Firefox but throws an error in IE7, both using Mootools .1.2.1.

By the way, awesome tutorial. I struggled with this for hours using each() and it really was cumbersome. This is a very slick and clean solution. Thanks so much!
linux4me
 
Posts: 7
Joined: Tue Nov 04, 2008 2:36 am

Re: Fx.Slide guide

Postby linux4me on Wed Nov 05, 2008 12:17 am

dailce wrote:
javiercviegas wrote:How strange! If i use the last version of mootools.js (1.2.1 core) downloaded from here it doesn´t work at all, and if i use the example js it works, but it doesn´t show all the info. What am i doing wrong?


Am I the only one that thinks there may be a problem with 1.2.1?
help12/sliding-tabs-mootools-t329-10.html


I'm using Mootools 1.2.1 and the script and HTML from this guide works flawlessly with it in Firefox 3.x with no errors showing up at all; however, in Win XP SP3/IE7 it throws the following error:
Line: 192
Char: 63
Error: invalid argument
Code: 0


Is anyone else having this problem in IE7?
linux4me
 
Posts: 7
Joined: Tue Nov 04, 2008 2:36 am

Re: Fx.Slide guide

Postby linux4me on Wed Nov 05, 2008 9:44 pm

linux4me wrote:Is anyone else having this problem in IE7?


I finally figured out why IE7 was throwing an error. It turned out that for some reason, IE7 can't handle the line:
  1. transition:Fx.Transitions.Back.easeIn


Remove those, and you're good to go.
linux4me
 
Posts: 7
Joined: Tue Nov 04, 2008 2:36 am

Re: Fx.Slide guide

Postby asa_carter on Tue Nov 18, 2008 8:10 pm

Hi

Thanks for this. I have wasted two days trying to do just this. I'm new to moo and I'm trying to port my stuff from jquery.

Here is where I've used it: http://www.argyllnewmedia.co.uk/regale/ ... /index.php

I have a problem though :(

When the registration form is submitted, an error message is returned which I append to a 'RegistrationFormErrors' div.

The problem is the slide.fx creates a wrapper around <div class="item-content">

This wrapper has a style of: <div style="margin: 0px; overflow: hidden; position: static; height: 207px;"> ..

which means that the height of 'item-content' cannot be extended.

What can I do ensure that I can append text when the slide is open?
asa_carter
 
Posts: 4
Joined: Tue Nov 18, 2008 11:41 am

Re: Fx.Slide guide

Postby henning on Wed Jan 07, 2009 3:26 pm

This script is working in all other browsers than IE7 any suggestion how to get it working in IE7 aswell? I have tested in FF (Win / Mac), IE6, Opera (Win / Mac), Safari and everything works perfect, exept from in Internet Explorer 7. I am getting an error message on the status bar.

Any ideas?
henning
 
Posts: 2
Joined: Wed Jan 07, 2009 2:01 pm

Re: Fx.Slide guide

Postby henning on Wed Jan 07, 2009 3:30 pm

linux4me wrote:
linux4me wrote:Is anyone else having this problem in IE7?


I finally figured out why IE7 was throwing an error. It turned out that for some reason, IE7 can't handle the line:
  1. transition:Fx.Transitions.Back.easeIn


Remove those, and you're good to go.


This solved it!! Thank you very much!!
henning
 
Posts: 2
Joined: Wed Jan 07, 2009 2:01 pm

Re: Fx.Slide guide

Postby rvandam on Mon May 04, 2009 5:16 pm

Great tutorial!

I was trying the script to get a horizontal slide. I simple added mode:'horizontal' to the slide options. The problem however is that the text slides in and out correctly, but the position is not right. Menu option 4 is shown on line 4 (should be line 1) etc.

Is there a way to solve this?

Edit:
Perhaps a good way to get a horizontal slide is to do a horizontal slide first, then "clear up" the space with a vertical slide. I am trying for hours now to get this working....but nothing works. Anybody a hint?
rvandam
 
Posts: 1
Joined: Mon May 04, 2009 5:08 pm

Re: Fx.Slide guide

Postby mltsy on Tue Jun 16, 2009 11:45 pm

For anyone needing just a simple implementation, I created this menu script a while ago called SlideMenu :)

It handles vertical or horizontal menus, using mouseover/out and takes care of some of the buggy issues trying to use mouseover/out. Nested Menus are possible to some extent, but this script was not intended for anything more complex than a single-level menu.
User avatar
mltsy
mootools connoisseurs
 
Posts: 39
Joined: Tue Aug 05, 2008 4:34 pm

PreviousNext

Return to Help

Who is online

Users browsing this forum: No registered users and 2 guests