he variable outside first.
>
> $(function(){
> var youtubeurl;
>
> $.getJSON('data.inc.json', function(j){
> youtubeurl = j.video_url;
> });
>
> so = new SWFObject(youtubeurl, "TEST", "498", "278&quo
.0.28",
"#00", "true");
nothing happens.
If I do
var testvar = "http://www.youtube.com/v/idididid&hl=de&fs=1";;
so = new SWFObject(testvar, "TEST", "498", "278", "9.0.28", "#00",
"true");
the video is loaded and plays.
Do I have to format the j["video_url"]?
all the best
Josp
2 matches
Mail list logo