javascript - "oembed is null" error in firebug console (JQUERY OEMBED) -


im having problem oembed outputting error in firebug's console windows such:

oembed null oembedcontainer.html(oembed.code);  

which when clicked point jquery.oembed.js file. declaration of oembed replace links class name of oembed, so:

$(".oembed").oembed(null, {                         embedmethod: "replace",                          maxwidth: 350,                         maxheight: 350,                         vimeo: { autoplay: false, maxwidth: 350, maxheight: 350 }                                          }); 

i think error pointing on first parameter of function oembed(). dont know happening inside, know workaround here?? link got code: http://code.google.com/p/jquery-oembed/

i had same problem until noticed snippet had non absolute url loading script. therefore never loaded @ all. change this:

<script type="text/javascript" src="../../jquery.oembed.js"></script>

for actual url of script, example, if you're testing local , both html test page , script in same folder:

<script type="text/javascript" src="jquery.oembed.min.js"></script>

that trick.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -