Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/04/2011, 11:40
yooom
(Desactivado)
 
Fecha de Ingreso: enero-2011
Mensajes: 293
Antigüedad: 13 años, 3 meses
Puntos: 4
Pregunta Eh probado de todo estoy arto echen una mano.

Eh probado de todo estoy arto echen una mano.

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Enviar formulario sin recargar</title>
<script language="javascript" src="jquery-1.3.min.js"></script>
<script language="javascript">
$(document).ready(function() {
    $().ajaxStart(function() {
        $('#loading').show();
        $('#result').hide();
    }).ajaxStop(function() {
        $('#loading').hide();
        $('#result').fadeIn('slow');
    });
  
			

	
	

 
 

/*megusra no megusta*/

function gusta(gusta){

	if(gusta==undefined ){
		alert("Error: link gusta indefined");
		return;
	}
	
		alert("Estoy dentro");

	
	
	$.ajax({

type: "GET",
//url: $(this).serialize(),
url: "envio.php",
data: "gusta="+gusta,

success: function(data) {
                $('#result').html(data);

            }
		
	});
	
		
}

/*megusra no megusta*/





	
	
	
		
		
		
		
		
		
})  
</script>

<a id="gusta_" id="fo3" name="fo3" href="javascript:gusta('235434');" >Click mi</a>




<div id="loading"></div>

<? include("envio.php"); ?>