Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Hi Anton, we've reported a bug, it is already fixed on our Test environment, should be pushed on Production with next release on mid-April.

Anton6737105
Posts: 0
Joined: Sat Mar 15, 2014 7:22 pm

Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Have you fixed it indeed? I've just tried to add aYoutube component with a fixed VideoID to my working mobilegrid and this grid stops working again :-(

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Hello!
We will check with developers team.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Hello!

Unfortunately this bug still hasn't been fixed...

Anton6737105
Posts: 0
Joined: Sat Mar 15, 2014 7:22 pm

Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Ooops... So I'd wait for a few months until new version? I'm new here and do not have any experience with such workflow here.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Hi Anton,

Remove YouTube component from Grid, instead add it in mapping using JavaScript. For example, run this code in mapping from item to grid:precodefunction parseUrlVars(url) {
var vars = [];
var params = url.slice(url.indexOf('?'));
if(params.indexOf('#')>=0) {
/Remove all symbols after '#'/
params = params.slice(0, params.indexOf('#'));
}

Code: Select all

 params = params.slice(1).split('&'); 
 for (var i in params) { 
    var item = params[i].split('='); 
    vars.push(item[0]); 
    vars[item[0]] = item[1]; 
 } 

 return vars; 

}
var urlVars = parseUrlVars(value['link']), videoId = urlVars['v'];
var youtube = $('<iframe dsid="youtube" name="youtube" videoid="'+videoId+'" frameborder="0" allowfullscreen="1" title="YouTube video player" width="320" height="200" src="https:&#47;&#47;www&#46;youtube&#46;com/embed/'+videoId+'?enablejsapi=1"></iframe>');
$(element)&#46;find('[name="mobilegridcell_4"]')&#46;append(youtube);/code/prewhere 'mobilegridcell_4' is a grid item name where you add YouTube video.

Anton6737105
Posts: 0
Joined: Sat Mar 15, 2014 7:22 pm

Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

YES! It works! Thank you so much!
Well, I'l try make it autoscale to fit the grid cell width but now it's much easier for me.

You're the most responsive team I ever saw!

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

If I simply add the control and set the video ID property, I get a Youtube error message. Does this mean that the control is still under repair? Thanks.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Hello!

Unfortunately this bug hasn't been fixed yet.

Return to “Issues”