![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
20/07/2012, 19:51
|
![Avatar de jmrvm801](http://static.forosdelweb.com/customavatars/avatar442045_1.gif) | | | Fecha de Ingreso: octubre-2011 Ubicación: Orizaba, Mexico
Mensajes: 37
Antigüedad: 13 años, 3 meses Puntos: 1 | |
retornar responseText ajax tengo este código para obtener el título de un video de Youtube:
function y (){
$.get('http://gdata.youtube.com/feeds/api/videos/z-NnLhkoSSA',
function(a){ return $(a).find('title').text();});}
la cuestion es que necesito el valor, ya intente varias cosas, entre ellas:
function y (){
a = $.get('http://gdata.youtube.com/feeds/api/videos/z-NnLhkoSSA',
function(a){ return $(a).find('title').text();});} pero retorna [Objetc]
si hago esto
a = null
function y(){
$.get('http://gdata.youtube.com/feeds/api/videos/z-NnLhkoSSA',
function(a){ a = $(a).find('title').text();}); return a} y retorna $(a).find('title').text();
yo quiero que retorne 'sensation white 2011 HD'
Gracias |