Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

Youtube ID from localstorage item

We asign the Youtube ID from an item in the onload event but it gives error. We tried with OnLoad and also with Before OnLoad event, and we got error on Youtube component in both cases.

Is it possible assign the ID to the Youtube component dinamically?

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

Youtube ID from localstorage item

Hi Rafael,

What is Youtube ID? Where do you add it?

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

Youtube ID from localstorage item

Sorry, I wanted to refer to the Video ID of Youtube component.

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

Youtube ID from localstorage item

Rafael,

We have a Video component, do you mean it? What do you want to do? http://docs.appery.io/documentation/u...

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

Youtube ID from localstorage item

No, I'm not referring to the video component, I'm referring to the Youtube component.

We want to assign dynamically the ID property of this component, and we got errors when we do it. (We are trying to set the ID property from a local storage variable.)

. Image Image Image

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

Youtube ID from localstorage item

Rafael,

We've tested. This is a bug, will be fixed.

Here is a workaround:preAppery("youtubeName").attr("src", "http://www.youtube.com/embed/"+ yotubeID);/preWhere 'youtubeName' is a component name,
'yotubeID' is a video id.

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

Youtube ID from localstorage item

Ok Katya, thank you so much.

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

Youtube ID from localstorage item

Katya, this solution:

Appery("youtubeName").attr("src", "https://www.youtube.com/embed/"+ yotubeID);

doesn't work for me.

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

Youtube ID from localstorage item

Rafael,

We'll search for another one. Sorry for the inconvenience.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Youtube ID from localstorage item

Did you replace "youtubeName" with your component name? Please tell us, what yotubeID did you use for testing?

Return to “Issues”