jQuery e ColorBox
|
您好ppl我在集成colorbox时遇到了一些问题,然后是这个,我有一个将数据加载到列表中的代码,在加载数据后,我可以单击标题进行编辑,然后再加载编辑表单通过此插件colorbox直到此处一切正常,在关闭colorbox之后,它将再次重新加载数据,并且如果您尝试编辑其他项目,则他不会让此错误发生:
$.colorbox is not a function
[Parar Neste Erro] onClosed: function () {
我当前的代码是这样的:
$(\"a[href*=\'#tabsDadosSoftware\']\").click(function () {
CarregarDadosSoftware();
});
function CarregarDadosSoftware() {
$.ajax({
url: \'ajax/Software.php\',
cache: false,
data: \"acc=Visualizar&idpc=<?php echo (int)$_GET[\"id\"]; ?>\",
type: \'GET\',
contentType: \"application/x-www-form-urlencoded; charset=utf-8\",
beforeSend: function () {
$(\'div#ListagemSoftware > div.Informacoes .load\').show();
$(\'div#ListagemSoftware > div.Informacoes > ul\').html(\"\");
},
success: function (result) {
$(\'div#ListagemSoftware > div.Informacoes .load\').hide();
$(\'div#ListagemSoftware > div.Informacoes > ul\').html(result)
}
});
}
$(\"div#ListagemSoftware > div.Informacoes > ul > li > .titulo\").live(\'click\', function () {
var IDSoftware = $(this).parent().attr(\"id\");
$.colorbox({
href: \"ajax/Software.php?acc=Editar&idpc=<?php echo (int)$_GET[\"id\"]; ?>&id=\"+IDSoftware,
onClosed: function () {
CarregarDadosSoftware();
}
});
});
现在在YouTube上放一个视频,演示错误提示
http://www.youtube.com/watch?v=AXOG5nec8_M
问候
没有找到相关结果
已邀请:
1 个回复
告耸