Function missing but file including it is loaded? (Uncaught ReferenceError: flashembed is not defined)

StackOverflow https://stackoverflow.com/questions/19453673

Pregunta

jQuery Tools is a stand-alone library that offers a flashembed() function; it does not require jQuery. But with or without jQuery I am seeing error Uncaught ReferenceError: flashembed is not defined

Page html from here and a JSFiddle of it.

<div class="ads-box" id="ad1">
<script>flashembed("ad1", "/g/shows/sidebar/72940064_ad_swf.swf");</script>
</div>
<script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script> 

The SWF is not 404 http://www.itsneworleans.dreamhosters.com/g/shows/sidebar/72940064_ad_swf.swf

And the CDN file has the flashembed function and resources tab shows it loaded. http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js

enter image description here

What is my next step in debugging this?

¿Fue útil?

Solución

You need to load jQuery Tools, and jQuery before you call flashembed

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top