this may sound a bit noobish, but I\'m trying to retrieve the video information for a YouTube video (I saw in some tutorial) basically here\'s the code
Where is the code snippet within the page? If it's inside a tag, the problem is that the script tag is being interpreted as javascript, not html. Instead, from the original script tag you can use document.write to write the script tag to the dom.
The new code would be something like:
function youtubeFeedCallback1(data) {
var s = '';
var k = '';
s += data.entry.title.$t;
k += data.entry.media$group.media$thumbnail[2].url;
vidtitle1=s
vidthumb1=k
}
document.write("");
The script tag needs to be written in javascript to access the vidid variable, but that means you have to manipulate the DOM in order to add the script tag since you're no longer in HTML.