[00:03:34.785] missing ; before statement @ http://gdata.youtube.com/feeds/api/videos/gzDS-Kfd5XQ?v=2&alt=json-in-script&callback=resultado&_=1307829811300:1
y este es el codigo
Código PHP:
Ver original
<!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>Documento sin título</title><script type="application/javascript" language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> <script type="application/javascript" language="javascript" src="scripts/js/funciones.js"></script> <script type="application/javascript" language="javascript" src="scripts/js/feed.js"></script> <script type="application/javascript" language="javascript" src="scripts/js/metodos.js"></script> <script type="text/javascript"> $.ajax({ url: "http://gdata.youtube.com/feeds/api/videos/gzDS-Kfd5XQ?v=2&alt=json-in-script&callback=resultado", dataType: 'script' }); function resultado(data) { document.writeln( '<b>Title:</b> ' + data.entry[ "title" ].$t + '<br/>' ); } </script> </head> <div id="resultados"> </div> <body> </body> </html>
alguien sabe por que
gracias