Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Grails,从一个div标记的onclick启动一个模态框_Grails_Html_Modal Dialog - Fatal编程技术网

Grails,从一个div标记的onclick启动一个模态框

Grails,从一个div标记的onclick启动一个模态框,grails,html,modal-dialog,Grails,Html,Modal Dialog,我对grails很陌生 我可以使用以下方法创建启动modalbox的txt链接: modalbox:createLink url="sample.gsp" title="Hello Grails!" width="600" linkname="This is the Link" 我现在要做的是通过单击div容器启动model <div onclick=modalboxblahblah> </div> 这是行不通的。有更好的解决办法吗 谢谢在div周围使用一个标

我对grails很陌生

我可以使用以下方法创建启动modalbox的txt链接:

modalbox:createLink url="sample.gsp" title="Hello Grails!" width="600" linkname="This is the Link" 
我现在要做的是通过单击div容器启动model

<div onclick=modalboxblahblah>

</div>

这是行不通的。有更好的解决办法吗


谢谢

在div周围使用一个标记。例如:

<modalbox:createLink url="form" title="Test" width="600" linkname="">
    <div>
        Place Anything here
    </div>
</modalbox:createLink>

这里放什么