Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

116
Visualizações
java Script broken İF-ELSE

Who can solve my broken İF-ELSE method. I use ajax and I am %100 sure this ( e ) = "Update Succesful.". to understand check Picture. when you check the picture that I added, you can see there that "update succesful." strinf (ı mean 'e' ) same with if. but if not working.

$.ajax({
          url:'ajax.php', // serileştirilen değerleri ajax.php dosyasına
          type:'POST', // post metodu ile 
          data:guncelleform, // yukarıda serileştirdiğimiz gonderilenform değişkeni 
          contentType:false,
          cache:false,
          processData:false,

          success:function(e){ // gonderme işlemi başarılı ise e değişkeni ile gelen değerleri aldı
                
                if (e == "Update Succesful.") {
                    Toastify({
                        text: e,
                        duration: 3000,
                        close:true,
                        gravity:"top",
                        position: "right",
                        backgroundColor: "#32FF00",//Green Color code that mean is update Succesfull
                    }).showToast();

                }else{
                    Toastify({
                        text: e,
                        duration: 3000,
                        close:true,
                        gravity:"top",
                        position: "right",
                        backgroundColor: "#FF0000",//RED Color code that mean is update unsuccesfull
                    }).showToast();
                }
           // $("#sonuc").html("").html(alert(e)); // div elemanını her gönderme işleminde boşalttı ve gelen verileri içine attı
                
          }
        });

enter image description here

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda