yeah sorry I use SF+ by default.
Yes it's an Ajax request and Ajax.lastData comes up empty. You're right, I checked the Chrome console and it says "No 'Access-Control-Allow-Origin' header is present on the requested resource."
Sorry to be clueless but could you give a bit more info on how I would go about the iFrame technique?
Sorry to say, I just did some research on the cross site policies, and the methods used a couple years ago now also no longer seem to work.
Well, some still work, in very old browsers :
The current support for the adding of manual scripting in cs2 is rather limited.
I added podes iframe plugin and did some tests, but did not succeed.
There are some other approaches, such as using a webserver with php and having that request a webpage, which relays the results back to you. But its a messy solution.
Outside of construct 2 its already a lot easier as you could add javascript to the iframe, and have the iframe send the innerHTML to the parent object (parent window). But in cs2 I can not add javascript or jquery to podes iframe. Perhaps you can ask Pode if it is possible to have it add it to the plugin so the iframe source is available in the iframes propperties in cs2.
For various approaches you can google around for : javascript get iframe html
I applied several of the suggestions by adding the browser object and podes iframe object.
The iframe loaded a url, and with the browser object I executed various bits of javascript to get the innerHTML from the iframe to anything in cs2, and all that worked gives me the cross domain notifcation.
document.getElementById('my_iframe').contentWindow.document.body.innerHTML;
[/code:fpenqg7y]