Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

114
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!