Take a look at this: (JasonP crossdomain) http://mootools.net/shell/aUgSz/
On 27 mayo, 02:32, TimeImp <[email protected]> wrote: > Ah, so thats why the JSONP was not working! And our IT Management team > advised us against Flash, since iTouches are everywhere. Thanks > Michael. > > @Barry, we use Macs across our workplace so Safari and Firefox (and > Chrome) are all used. We do have a couple of PC's but they are used by > admin staff who will most likely not be needing it. The articles you > mentioned are a great read. > > I shall look into this afternoon and report back on the results. > > Regards, > James > > On May 27, 10:16 am, Michal Charemza <[email protected]> wrote: > > > Hi, > > > Due to the security restrictions, I think you have 2 choices: > > > - Use Ajax via Flash, such > > ashttp://maxpert.tumblr.com/post/133630525/mootools-cross-domain-ajax-r..., > > which can get around the cross domain issue. But it would be dependent on > > Flash... > > > - Or, if you can, to get JSONP working, you would need to modify the PHP > > file. If, for example, the current PHP file accessed by: > > > status.php > > > which just returns something like: > > > "Available", > > > you would have to change it to be accessed as: > > > status.php?callback=somefunctionName > > > And it would then return: > > > somefunctionName({status: "Available"}); > > > Michal. > > > On 27 May 2010, at 00:42, TimeImp wrote: > > > > Hi everyone, > > > I am having an issue with cross-domain ajax requests. I have read > > > into the issues and security details around this policy and completely > > > understand why this would not work over the internets. > > > My question is can this work on a local intranet? Eg, our intranet > > > server [for arguments sake] is 10.0.0.70, but the page needs to load a > > > remote php file (as this server is HTML only and I cannot change > > > this.) from the IP 10.0.0.75 to get the status of IT Support's > > > availability. The PHP file simply returns a number and nothing else > > > (no formatting, no JSON). > > > > I have messed around with Request.JSONP but have been unsuccessful > > > thus for. Any help would be most appreciated. > > > > Regards, > > > James
