2
Actually there are 2 problems: 1º I have a DIV CONTENT where I open via AJAX the content in it, the same is happening like, if I click 2 time on the same link he instead of reloading the page he is simply adding the content again getting 2 content equal in sequence
2º this same page that I load has a form of Ubmit I need that when I click to send it do the service in the same DIV CONTENT that it has already been opened.
Below is the part of the code
php generated upload form
 echo "<form action=\"$_SERVER[PHP_SELF]\" method=\"post\"enctype=\"multipart/form-data\">\n
Arquivo JPG:<br>
<input type=\"file\" name=\"vImage\" />\n
<input type=\"submit\" class=\"btn_enviar\" name=\"submit\" value=\"Enviar\" />";
script
$(document).ready(function(){
$(".btn_receber").click(function(event) {
        event.preventDefault();
    $.ajax({
                   //pegando a url apartir do href do link
        url: $(this).attr("href"),
        type: 'GET',
        context: jQuery('#conteudo'),
        success: function(data){
            this.append(data);
        }
    });     
});
$(".btn_enviar").click(function(event) {
        event.preventDefault();
    $.ajax({
                   //pegando a url apartir da action do form
        url: $(this).parent("form").attr("action"),
        data: 'busca=' +$("#busca").val(),
        type: 'POST',
        context: jQuery('#conteudo'),
        success: function(data){
            this.append(data);
        }
       });     
    });
});
as for 1 has been solved, the second I’m trying to make more difficult
– Arsom Nolasco