I guess i should have been more specific.  This is basically a rewrite of
thickbox but designed for html content and not for images and thickbox is
not really design in a way i can use it and thickbox reloaded has an IE bug
that is annoy so i thought I would rewrite the plugin from scratch and try
to learn a few things while i do it.

This is a seation of code that does not work in all browser, explain below

reset_size_fade: function()
        {
            var document_height = parseInt($(document).height());
            var document_width = parseInt($(document).width());
            var window_width = parseInt($(window).width());
            var window_height = parseInt($(window).height());



            if(document_height > window_height)
            {
                document_width += 21;
                        }

            $('#fade_box_dim').css(
            {
                height: document_height,
                width: document_width
            });

            //this is to disable the scrolling and also does not require me
to apply anything special to ie for position fixed hacks

        }

this is the result of adding height: 100% and overflow: hidden to the html
tag.
IE6:disabling of the scroll does work, even the mouse can't scroll, however
the above code alert "0", note sure why that code does not work in IE which
in turn make the content higher than it should be.

IE7:disabling of the scroll does work, even the mouse can't scroll, however
the above code alert "0", note sure why that code does not work in IE which
in turn make the content higher than it should be.

FF:disabling of the scroll does work, even the mouse can't scroll, however
the above code alert "0", note sure why that code does not work in FF but FF
also shoot the window to the top so the content does display ok but the
indow should not shoot up to the top

OP:when the fade box load the content is in the right place but even tho the
scroll bar is gone, I can still scroll with my mouse.  the above code works
fine.

SF: when the fade box load the content is in the right place but even tho
the scroll bar is gone, I can still scroll with my mouse.  the above code
works fine.

After all this testing i really think that overflow hidden is no the best
choice to use.  shouldn't returning false in the scroll function not allow
scroll, that how it looks like thickbox reloaded does it.


Matt-70 wrote:
> 
> You could just set the css "overflow" property to hidden.
> 
> body {
> overflow:hidden;
> }
> 
> this should hide scrollbars, so no scroling possible
> 
> Matt
> 
> 2008/2/14, Eridius <[EMAIL PROTECTED]>:
>>
>>
>>
>> Why on earth do you think you know hat my plugin is and needs.  I have my
>> reason for wanting to disable scrolling just like thickbox does.
>>
>>
>>
>> [EMAIL PROTECTED] wrote:
>> >
>> >
>> > Why on earth would you want to? Your visitors may think your page
>> > broke their computer!
>> >
>> > Eridius wrote:
>> >
>> >> but the wheel scroll still scrolls the window, how to i disable it.
>> >
>> >
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/how-to-disable-wheel-scroll--tp15471899s27240p15479659.html
>>
>> Sent from the jQuery General Discussion mailing list archive at
>> Nabble.com
>> .
>>
>>
> 
> 
> -- 
> Matthias ETIENNE
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-disable-wheel-scroll--tp15471899s27240p15489009.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to