<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src='jquery.simple.modal142.js'></script>
<script>
$('#viewwid').click(function()
{
var scr='../displayproducts';
$.model('<iframe src="' + src + '" height="450" width="830" style="border:0">',
{
closeHTML:"",
containerCss:
{
backgroundColor:"#fff",
borderColor:"#fff",
height:450,
padding:0,
width:830
},
overlayClose:true
});
}
</script>
当用户单击id“viewwid”的按钮时,我使用该代码片段显示模型对话框。传递给iframe的url是一个cakephp视图页面。点击按钮后没有显示任何内容,请帮忙吗?
非常感谢
答案 0 :(得分:0)
您已将model
代替modal
?
答案 1 :(得分:0)
您的脚本中存在错误。你忘了关闭点击(
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src='jquery.simple.modal142.js'></script>
<script>
$('#viewwid').click(function()
{
var scr='../displayproducts';
$.model('<iframe src="' + src + '" height="450" width="830" style="border:0">',
{
closeHTML:"",
containerCss:
{
backgroundColor:"#fff",
borderColor:"#fff",
height:450,
padding:0,
width:830
},
overlayClose:true
});
}
); //<<====
</script>