我正在尝试在简单模态框中打开一条php记录。我已经尝试使用fancybox打开一条记录。
就像这样的fancybox
<td><a class="fancybox" href="url.php?id='.$row["id"].'"><img src=".png"></a></td>
如何在简单模态中执行此操作?
SimpleModal
$("myElement").addEvent("click", function(){
var SM = new SimpleModal({"width":600});
SM.addButton("Action button", "btn primary", function(){
this.hide();
});
SM.addButton("Cancel", "btn");
SM.show({
"model":"modal-ajax",
"title":"Title",
"param":{
"url":"ajax-content.php",
"onRequestComplete": function(){ /* Action on request complete */ }
}
});
});
<li class="example-item" id="modal-ajax">
<img src=".jpg">
<a href="#">Modal Ajax</a></li>