[jQuery] Re: getJSON url variable broken

2009-03-05 Thread josp
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

[jQuery] getJSON url variable broken

2009-03-05 Thread josp
.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