Benjamin Sterling wrote:
> 1. I get scrollbars when I the overlay is on, and I know the fix is
> to set the body overflow to hidden, but can't find where to put that
> in your code, can you point me in the right direction?
I assume that you have a relatively "short & skinny" page.. so that
the entire contents fit within the viewport. When you activating a
jqModal trigger w/ overlay, you get both a horizontal & vertical scrollbar?
One means to prevent this would be to set the body overflow value to
hidden in your base CSS.
e.g.
<html><head>
<style type="text/css">
body {overflow: hidden;}
</style>
</head><body>...</body></html>
Another way would be to set the body overflow in the jqModal onOpen &
onClose callbacks;
e.g.
$(e).jqm(
{},
function(h) {
$('body').css({overflow:'hidden'});
h.w.show();
},
function(h){
$('body').css({overflow:'visible'});
h.w.jqmClose();
}
);
NOTE; I'm not a fan of setting the body overlow to hidden. The reason is
you (generally) never know the viewport resolution of your visitors...
and having overflow set to hidden while displaying content wider/taller
than their screens will have the potential of rendering the page useless.
>
> 2. I set the $().ajaxStart().ajaxStop(); for other notices I have on
> the site, how do I set the global to false in your code?
I'm not sure I gather what you need here. jqModal uses the $.load()
function to load remote content into the ajax "target". The function
you've set for the $().ajaxStart & $().ajaxStop should be executed. If
you need to disable it you can again use callbacks and perform your ajax
function within the callback.
~ Brice
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/