So I've been working on this and I've run into a problem. It seems the url for realm:
Code:
var BASEURL = [
'https://realmofthemadgodhrd.appspot.com/',
'https://rotmgtesting.appspot.com/'
][+!!window.testing]
Has a CORS header missing that prevents you from locally getting it (Access-Control-Allow-Origin). The reason it works with the yahoo API is because it's loading from a web resource, not a local resource.
I have a third party API that handles things like this (and I don't see the problem since we're already using one that's yahoo) and I'll be incorporating
this github repo to do the converting of xml to json. If you're curious, I'm going to use
http://crossorigin.me/ for the loading.
- - - Updated - - -
Well I ended up using
Cors-Anywhere instead, but when I format it to json the response text is a tad bit different. So for some reason, I get all the data in the same structure, just without the response shit that tells the function that it was a successful XHR request. I'll work more on this later, but I'd appreciate if anyone else could help me out with it.
- - - Updated - - -
Okay I've made a
pull request to atomizer's repository. I hacked that together rather quickly, so please review it before accepting it as the ultimate fix.