Então para vc colocar o evento para funcionar apenas 1x p/ cada elemneto utilize a funcao once, tipo $(".imagessss).once(function(){ alert('Urrul'); }) mas axo que não é isso que vc quer, axoq eh isso
> > > $(".delete").bind('click', function(e){ > > > var _id = $(this).attr("id"); > > > $("#confirm_box").css({left: e.pageX-453, top: e.pageY}) > > > $("#confirm_box").fadeIn(300); > > > $("#del_nao").bind('click', function(){ > > > $("#confirm_box").fadeOut(300); > > > $(".delete").attr("id",""); > > > }); > > > $("#del_sim").bind('click', function(){ > > > alert(_id); > > > $("#del_sim").attr("id",_id); > > > $.ajax({ > > > type: "POST", > > > url:"../painel/kern_usuarios.php", > > > data: {id:_id, acao: "del_user"}, > > > success: function(msg){ > > > if(msg) > > > { > > > $("#confirm_box").fadeOut(300) > > > > > > $("#answer_box").text("Usuario deletado com > > > sucesso"); > > > $("#answer_box").fadeIn(1000, function(){ > > > > $(this).animate({opacity:1.0}, 1000, "", > > > function(){ > > > > $(this).fadeOut(1000, function(){ > > > > > > > $($("tr[id="+_id+"]").slideUp("slow"); > > > }); > > > }); > > > }); > > > } > > > else > > > { > > > $("#confirm_box").fadeOut(300) > > > > > > $("#answer_box").text("Erro ao deletar > > > usuario"); > > > $("#answer_box").fadeIn(300); > > > } > > > } > > > }); > > > }); > > > }); On 10/26/07, Jimmy Neph <[EMAIL PROTECTED]> wrote: > Opa Jean!!!! > Então...Coloquei esse id aí prá poder zerar e tentar fazer com que o código > parasse com esse loop...Mas tb naum tá dando muito certo... > O que rola é que ele acaba pegando todos os eventos onclick que eu faço > nessas imagens...Queria que ele reconhecesse sempre um só...Entendeu qual a > treta???rsrsrsrs > > > 2007/10/26, Jean <[EMAIL PROTECTED]>: > > > > Ae brazuca naum sei do resto mas sei que vc esta errando aqui > > var id = $(this).attr("id_delete") > > > > The attr method catch or set a the value of the jq object. > > Try this > > var id = $(this).attr("id") > > > > > > On 10/25/07, Jimmy Neph <[EMAIL PROTECTED]> wrote: > > > This is the code: > > > $(".delete").click(function(e){ > > > var id = $(this).attr("id_delete") > > > $("#confirm_box").css({left: e.pageX-453, top: e.pageY}) > > > $("#confirm_box").fadeIn(300); > > > $("#del_nao").click(function(){ > > > $("#confirm_box").fadeOut(300); > > > $(".delete").attr("id_delete",""); > > > }); > > > $("#del_sim").click(function(){ > > > alert(id); > > > $("#del_sim").attr("id_user",id); > > > $.ajax({ > > > type: "POST", > > > url:"../painel/kern_usuarios.php", > > > data: > > > "id="+$(this).attr("id_user")+"&acao=del_user", > > > success: function(msg){ > > > if(msg) > > > { > > > $("#confirm_box").fadeOut(300) > > > > > > $("#answer_box").text("Usuario deletado com > > > sucesso"); > > > $("#answer_box").fadeIn(1000, function(){ > > > > $(this).animate({opacity:1.0}, 1000, "", > > > function(){ > > > > $(this).fadeOut(1000, function(){ > > > > > > > $($("tr").attr("id_linha")).find("[EMAIL PROTECTED]"+id+"]").slideUp("slow"); > > > }); > > > }); > > > }); > > > } > > > else > > > { > > > $("#confirm_box").fadeOut(300) > > > > > > $("#answer_box").text("Erro ao deletar > > > usuario"); > > > $("#answer_box").fadeIn(300); > > > } > > > } > > > }); > > > }); > > > }); > > > > > > > > > I believe that is a sintax problem...But I'm yet noob in Jquery... > > > > > > 2007/10/25, Glen Lipka < [EMAIL PROTECTED]>: > > > > Can you post a simple page that demonstrates the problem? > > > > It's easier to debug that way. > > > > > > > > Glen > > > > > > > > > > > > > > > > On 10/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote: > > > > > > > > > > Hi there friends!!! > > > > > > > > > > I'm having problems with a code here using AJAX on Jquery. > > > > > When I do only one click in my object, it works fine, but, when I > > > > > click again in other object the previous result of id continue > stored. > > > > > > > > > > What I have to do to solve this problem?? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > []´s Jean > > www.suissa.info > > > > Ethereal Agency > > www.etherealagency.com > > > > -- []´s Jean www.suissa.info Ethereal Agency www.etherealagency.com