Ver Mensaje Individual
  #14 (permalink)  
Antiguo 09/06/2011, 07:22
mireley
 
Fecha de Ingreso: junio-2011
Mensajes: 5
Antigüedad: 12 años, 10 meses
Puntos: 0
Respuesta: Crear url corta para enviar por email

Gracias Abimael

Masterpuppet ... jeje.. ahora mi problema es..

como "armo" ese jquerry?

puse eso

<html>
<head>
</head>
<body>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="text/javascript">

function CompressURL(url,success)
{

var link = 'http://to.ly/api.php?json=1&longurl=' + encodeURIComponent(url) + '&callback=?';

$.getJSON(link, function(data){
success && success(data.shorturl);
});



CompressURL("http://www.twitter.com/jonasl", function(shorturl) {

alert(shorturl);

});
</script>

</body>
</html>

pero obviamente no creo que sea asi verdad?
gracias y disculpas por tanta pregunta