I have a plugin that works fine on one site but on http://www.inhouse-advertising.com I get the following error in firebug: $("body").facebookTrafficPop is not a function
I have tried with just jQuery and just $.fn.FBTP() but still a no go and I know the order is correct. jQuery is being loaded before the plugin.
Help!
There are a few possibilities:
It's difficult to diagnose without a link, however. Is this up anywhere where we can see it?
It looks like the $(document).ready
call is getting called before everything loads. You could try to put it an a different method and do something like this:
At the end of your html (very last line) do this call:
<script type="text/javascript">webpageReady();</script>
Then change the function from $(document).ready
to webpageReady()
. This will ensure that everything is loaded before the $('body').facebookTrafficPop
call is done.
Also make sure the script is visible in head
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With