Board Thread:Support Requests - Getting Started/@comment-4316832-20130209013256/@comment-4674838-20130218184656

Sam: The main reason your code doesn't work is because you're trying to load a page from a different wiki. Cross domain requests are prohibited by the Same origin policy. If you're requesting a page from a different wiki, you need to use a technique to get around the Same origin policy, for example JSONP.

Secondly, Cam's point that you appear to be loading the entire page is another problem. If you load the URL you're using, it will load the skin, the ads -- everything. What you want is just the content of the wikipage, i.e. you should use the URL that Fandyllic posted.

Here's an example of using JSONP to load a page from another wiki:

One more thing to keep in mind here: the links will break when you render that page on your wiki.

For example, if the page you're loading has a link such as  -- on the Bloons Wiki that's fine, it will link to the "Bloons" page on the local wiki.

But after you've loaded the page onto your wiki, that link will point to the "Bloons" page on your wiki, not the Bloons wiki. So if you want the links on the page to work, you would need to use JavaScript to overwrite local wiki links such as "/wiki/Bloons" to point to "http://bloons.wikia.com/wiki/Bloons" instead