For some reason when I manually load the api either from a web host, or locally, I keep getting this error.
Code: Select all
Uncaught ReferenceError: SFS2X is not defined.Here's how I'm calling the API in JavaScript, and just for good measure, the way I'm loading it in HTML.
JavaScript:
Code: Select all
var sfs;
var config = {};
config.host = "127.0.0.1";
config.port = 8080;
config.debug = true;
config.useSSL = false;
sfs = new SFS2X.SmartFox(config);Code: Select all
<script type='text/javascript' src='libs/sfs2x-api-1.7.18.js'></script>Code: Select all
Uncaught SyntaxError: no line break is allowed between 'throw' and its expression sfs2x-api-1.7.18.js:4301:16