3
我一直在尝试使用遵循滚动到与移动用户滚动一起对话框,但没有成功如何滚动流JQuery用户界面对话框
<script>
$(function() {
$("#dialog:ui-dialog").dialog("destroy");
$("#dialog-report-problem-form").dialog({
autoOpen: true,
height: 550,
width: 700,
modal: true,
buttons: {
"<?= $this->translate('REPORT_PROBLEM'); ?>": function() {
reportProblem();
},
"<?= $this->translate('CANCEL'); ?>": function() {
$(this).dialog("close");
}
},
close: function() {
}
});
$.scrollFollow("#dialog-report-problem-form",{speed: 10});
});
</script>
。
<div id="dialog-report-problem-form" title="<?= $this->translate('REPORT_PROBLEM'); ?>">
<?= $this->form ?>
</div>
我已经收到了错误
box.cont.offset() is null
有谁知道怎么能解决或其他基于jQuery的解决方案来跟踪用户滚动?
嗨,我看到你的工作示例,但是当我插入到我的模板中时,它总是停下来。看http://yourlnk.com/67转到页脚并单击报告问题 – dextervip 2012-01-16 17:37:59
看起来像对话框的大小和窗口高度影响 – dextervip 2012-01-17 05:52:07
我看到您加载脚本以及对话框内容,因此无法调试它并且检查可能是什么问题。你可以把它放在'$(“#report-problem”)。html(html);''后面的'script.js'中吗? – 2012-01-17 06:37:30