I use the simpleModal plugin
http://www.ericmmartin.com/projects/simplemodal/
when the text in the dialog box is too long, I try to scroll, but the whole page scrolls even when using the modal: true.
therefore, I don’t see the end of the dialog, I am trying to determine maxHeight - but it seems to have no effect.
any idea?
the code:
function loadDialog(Code,vrsnNum)
{
vrsnNum=vrsnNum-1;
$.get(
"/ajaxVerision.asp",
{Code: Code,VerisionNum: vrsnNum},
function(data)
{
$(".CrnrPager").html(data);
}
);
$.get(
"/ajaxVerisionNext.asp",
{Code: Code,VerisionNum: vrsnNum},
function(data)
{
$("#sp1").html(data);
}
);
$('#basic-modal-content').modal({maxHeight: 400,autoPosition : true, position: ['20%','25%']});
}
source
share