Old 07-05-2008, 10:49   #1 (permalink)
Wiggy
Registered User
 
Wiggy's Avatar
 
Join Date: Sep 2007
Location: South East of England
Posts: 34
Firefox n Mootools problem!!

Hi all hope someone can help,

I have the full version of mootools loaded and i am hiding a contact us form that is revealed when the contact us button is clicked, it works lovley in ie7-8 but in firefox/safari it totlay messes up.

link to demo

Untitled Document


hop some can help

javascript//
window.addEvent('domready', function(){


var mySlide = new Fx.Slide('form',{
duration: 1200,
transition: Fx.Transitions.Bounce.easeOut
}).hide();


$('toggle').addEvent('click', function(e) {
e = new Event(e);
mySlide.toggle();
e.stop();
});

})

css//
#cont1 #cont2 #form {
padding: 0px;
float: left;
width: 800px;
font-weight: bold;
color: #FFFFFF;
font-size: 12px;
background-image: url(../images/chalk.gif);
background-repeat: no-repeat;
height: 300px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
}
  Reply With Quote
Old 07-05-2008, 18:33   #2 (permalink)
udoobu
Registered User
 
udoobu's Avatar
 
Join Date: May 2008
Location: Indianapolis
Posts: 7
Some progress...

After looking at it with Firebug, I noticed that the overflow on the DIV above your id="form" DIV is blocking the contact form after the animation fires. To see this, click the Contact link to fire the event and then inspect that DIV with Firebug and remove the overflow: hidden; and it will reveal the contact form. I'm still looking at it too.

See ya!
  Reply With Quote
Old 07-05-2008, 19:04   #3 (permalink)
udoobu
Registered User
 
udoobu's Avatar
 
Join Date: May 2008
Location: Indianapolis
Posts: 7
Ok... here's what I've accomplished through Firebug:

- Take overflow off of hidden DIV above the form DIV
- Position banner DIV relative
- Position main-links DIV relative
- Reduce the height of the form, form-1h, and form-rh DIVs to 290px
- Reduct the margin-top of the form DIV to -290px

That did it for my Firefox. It worked perfect after that - open & close. The reason that I'm reducing everything to 290px is because leaving it at 300px makes it stick out of the top by 10px. So, if you can solve that without reducing then you wouldn't have to change that. But, 10px is a small sacrifice.

Let me know if that doesn't work!
Peace!
  Reply With Quote
Old 08-05-2008, 02:54   #4 (permalink)
Wiggy
Registered User
 
Wiggy's Avatar
 
Join Date: Sep 2007
Location: South East of England
Posts: 34
Right I see what you are saying when using firebug, the hidden div above the id-"form" must be generated by mootools as this is not something I have created. I would have thought the code would change the properties of this div to reveal the form div,

Buy the way thanks for you in-depth help much appreacetd
  Reply With Quote
Old 08-05-2008, 05:10   #5 (permalink)
Wiggy
Registered User
 
Wiggy's Avatar
 
Join Date: Sep 2007
Location: South East of England
Posts: 34
I would have expected the hidden value to toggle to visible but it doesnt seem to change
  Reply With Quote
Old 08-05-2008, 08:54   #6 (permalink)
udoobu
Registered User
 
udoobu's Avatar
 
Join Date: May 2008
Location: Indianapolis
Posts: 7
You're welcome! I guess you could try and override it somehow... I dunno. Let me know if I can help.
  Reply With Quote
Old 08-05-2008, 09:44   #7 (permalink)
Wiggy
Registered User
 
Wiggy's Avatar
 
Join Date: Sep 2007
Location: South East of England
Posts: 34
Im Not really sure how to go about overriding it, the alternataive is using jquery to maipulate the form (as this work cross browsers) but could not find a way to do the link effect with it. with mootools it just fades in the new css style color:#ffffff or what ever you want?
  Reply With Quote
Old 08-05-2008, 11:16   #8 (permalink)
Wiggy
Registered User
 
Wiggy's Avatar
 
Join Date: Sep 2007
Location: South East of England
Posts: 34
All done, i manager to use the jquery method to hide/reveal the form and the mootools css fade.
Thanks again for your help!!
  Reply With Quote
Old 08-05-2008, 11:16   #9 (permalink)
Wiggy
Registered User
 
Wiggy's Avatar
 
Join Date: Sep 2007
Location: South East of England
Posts: 34
All done, i managed to use the jquery method to hide/reveal the form and the mootools css fade.
Thanks again for your help!!
  Reply With Quote
Old 08-05-2008, 11:16   #10 (permalink)
Wiggy
Registered User
 
Wiggy's Avatar
 
Join Date: Sep 2007
Location: South East of England
Posts: 34
All done, i managed to use the jquery method to hide/reveal the form and the mootools css fade.
Thanks again for your help!!
  Reply With Quote
Old 08-05-2008, 18:02   #11 (permalink)
udoobu
Registered User
 
udoobu's Avatar
 
Join Date: May 2008
Location: Indianapolis
Posts: 7
No problem! Have a good one!
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8