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??
> >
> >
>

Reply via email to