Uncaught ReferenceError: Ajax is not defined

jone hans picture jone hans · Oct 9, 2015 · Viewed 9.9k times · Source

I got an error in my mybb forum. I used a plugins for advance stats. But i got an error in console about "Uncaught ReferenceError: Ajax is not defined" So that's why my website not loading latest post from top.

Website: http://satfriends.net/index.php

Here is my code

Give e a solution for that, how can i fix it.

Thanks

Answer

anmarti picture anmarti · Oct 9, 2015

You have to include the reference to the api where the method Ajax.Request is included. In your case it seems that is Prototype library.

Include the library at the top of your html page:

<script src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.3.0/prototype.js"></script>