title: Add javascript variable to javascript src?
body: <p>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 </p>
  
  <pre><code>    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
  
        }
   &lt;script type="text/javascript" id="javaone" src='http://gdata.youtube.com/feeds/api/videos/'+vidid[0]+'?v=2&amp;amp;alt=json-in-script&amp;amp;callback=youtubeFeedCallback1' &gt;&lt;/script&gt;
  </code></pre>
  
  <p>As you can see, I'm trying to insert the var "vidid[0]" in the src, which doesnt work. Now, I did do my homework, but when i set a new script attribute and set the new src tot that it still does not work. Can anyone help me here?</p>