Quantcast
Channel: Últimos conteúdos
Viewing all articles
Browse latest Browse all 14190

Fazendo post em Ajax

$
0
0

Oi tudo bem? Estou tentando chamar uma função em php com jquery ajax, mas não me está funcionando, nem me dá erro, aqui vai o meu codigo.

 

Pagina: profile.php

php/html:

if (isset($_REQUEST['SubmitInsertExperience'])) {

            insertProfessionalExperience($candidateSession);
        }

 

JS:

 $(document).ready(function() {
            
            $("#SubmitEditExperience").click(function(event){
                
               $.post( 
                  "profile.php",
                  { name: "SubmitInsertExperience" },
                  function(data) {
                     $('#stage').html("Updated with Success");
                  }
               );
                    
            });
         });
 
 

Viewing all articles
Browse latest Browse all 14190