laboss Posted June 1, 2011 at 08:47 AM Report #392529 Posted June 1, 2011 at 08:47 AM Boas ppl estou a ter um pequeno problema na integração do colorbox, então é o seguinte, tenho um código que me carrega os dados para dentro de uma lista, depois de os dados carregados poderei clicar no titulo da mesma para editar, o formulário de edição esta a ser carregado pelo plugin colorbox, ate aqui tudo bem, depois de fechar o colorbox ele recarrega os dados outra vez, e se for tentar editar outro item ele não deixa da este erro: $.colorbox is not a function [Parar Neste Erro] onClosed: function () { o meu codigo actual é este: $("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(); } }); }); Esta aqui um vídeo com o erro 😛 https://www.youtube.com/embed/AXOG5nec8_M?feature=oembed Cumprimentos
bruno1234 Posted June 1, 2011 at 06:59 PM Report #392723 Posted June 1, 2011 at 06:59 PM Tens o script da colorbox bem incluido? Já viste os exemplos deste site? http://colorpowered.com/colorbox/ Matraquilhos para Android. Gratuito na Play Store. https://play.google.com/store/apps/details?id=pt.bca.matraquilhos
laboss Posted June 1, 2011 at 09:16 PM Author Report #392753 Posted June 1, 2011 at 09:16 PM Ja resolvi o problema, na pagina que tinha o conteúdo tinha la uma tag de script a puxar o jquery e tava a limpar o dom todo ja corrigi obrigado pela ajuda 😄
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now