Ver Mensaje Individual
  #13 (permalink)  
Antiguo 19/04/2011, 11:47
yooom
(Desactivado)
 
Fecha de Ingreso: enero-2011
Mensajes: 293
Antigüedad: 13 años, 3 meses
Puntos: 4
Respuesta: Como hago funcionar esto ?

hi again i got this error :

Tengo este error :

When i sending the word in accion javascript send this instead of the word

Manda esto en vez de la palabra.

Cita:
unction (D,E){return new n.fn.init(D,E)}



Código HTML:


( function gusta(gusta_message){
        $('#fo3').bind('click', function() {

			
	if(gusta_message==undefined){
		alert("Error: error gusta_message");
		return;
	}
	
	

	$.ajax({

type: "GET",
url: "envio.php",
data: "gusta="+gusta_message,

success: function(msg){

			document.getElementById("fo3").innerHTML = "correcto!!!"+msg;
		}, 

	error: function(envio){
			document.getElementById("fo3").innerHTML = "Error:"+envio.responseText;
		}
		
	});



					
					
					
          return false;
        });
    })

		
		
		
		
})  




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


Última edición por yooom; 19/04/2011 a las 12:00