0
我有jQuery
功能,動態地添加a
,當我想要使用此元素作爲模式我不能,沒有任何反應。模式窗口不顯示在Joomla
當我添加相同的元素使用php
一切工作正常。
我的猜測是jQuery.modal
沒有看到這個元素,有沒有辦法解決這個問題?
我的功能是這樣的:
$.each(respJSON, function(){
$('#poll-questions').append(
$('<li>').append(
$('<a>').attr('href', prefix + this.id).attr('class', 'modal')
.attr('rel', '{handler: "iframe", size:{x:600, y:500}}')
.append($('<span>').append(this.question)
)));
});
:
如果這沒有幫助,確保你中有你正確的編碼文件view.html.php像這樣? – Diego
在開始的HTML tmpl – Viszman
你可以使用另一種方式來模型窗口http://www.spiralscripts.co.uk/Joomla-Tips/using-modal-windows-with-joomla.html http://www.kirbymixedmedia的.com /黑客-的MainMenu-30/16的Joomla/36的負載mootools的模態窗口-立即合的Joomla –