Note that there are some explanatory texts on larger screens.

plurals
  1. POmootools Fx.slide not working IE6
    primarykey
    data
    text
    <p>I have some javascript that is built on top of mootools that is basically giving a div some show/hide functionality.</p> <pre><code>window.addEvent('domready', function(){ /*var mySlide = new Fx.Slide('customise_text').hide() var mySlide2 = new Fx.Slide('customise_link').hide() $('customise').addEvent('click', function(e){ $('customise').addClass('active'); mySlide.toggle(); //show-hide login panel mySlide2.toggle(); //show-hide login panel e.preventDefault(); });*/ /*$('moodal_close').addEvent('click', function(){ alert("1"); });*/ //alert("hello") var vertical_slide = $('vertical_slide'); var checkoutVerticalSlide = $('vertical_slide_checkout'); var v_toggle_checkout = $('v_toggle_checkout'); if(!vertical_slide || !checkoutVerticalSlide || !v_toggle_checkout) { return; } else { var status = { 'true': 'open', 'false': 'close' }; //-vertical var myVerticalSlide = new Fx.Slide('vertical_slide').hide(); $('v_toggle').addEvent('click', function(e){ e.preventDefault(); myVerticalSlide.toggle(); }); // When Vertical Slide ends its transition, we check for its status // note that complete will not affect 'hide' and 'show' methods myVerticalSlide.addEvent('complete', function() { if(status[myVerticalSlide.open] == 'open') { $('v_toggle').addClass('open'); } else { $('v_toggle').removeClass('open'); } }); var checkout_status = { 'true': 'open', 'false': 'close' }; var checkoutVerticalSlide = new Fx.Slide('vertical_slide_checkout').hide(); $('v_toggle_checkout').addEvent('click', function(e) { e.preventDefault(); checkoutVerticalSlide.toggle(); }); checkoutVerticalSlide.addEvent('complete', function() { if(status[checkoutVerticalSlide.open] == 'open') { $('v_toggle_checkout').addClass('open'); } else { $('v_toggle_checkout').removeClass('open'); } }); } </code></pre> <p>In IE6 I get page loaded with errors and get an error of <code>Object does not support this method or property</code></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload