Using own handler for Jquery Oembed
-
30-10-2019 - |
Вопрос
I'm trying to use my own function (never liked $(document).ready()
) to dynamically load an embed from an URL.
I'm trying like this:
function video(donde,url) {
$("#"+donde).oembed(url);
return false;
}
And an example of use would be:
<div class="texto">
[my title]
<span style="float: right;">
<img onclick="video('video68084','http://www.youtube.com/watch?v=ORZTCQjAuZY');" src="http://i1.ytimg.com/vi/ORZTCQjAuZY/default.jpg" alt="preview" onerror="this.src='images/linket.png';" class="caja_con_sombra" style="width: 80px; height: 60px;"> </span>
<div style="float: left; width: 76%;">
[my description]
</div>
<div id="video68084"></div>
</div>
Which jumps:
b.type is not a function
[Interrumpir en este error] b.ready);var j=false;try{j=E.frameElem...ow(j))return false;if(j.constructor&&
Onclick vía firebug :(
Any idea what I'm missing? The error source file is jquery.min.js :S
Нет правильного решения
Не связан с StackOverflow