Hi,

Due to the security restrictions, I think you have 2 choices:

- Use Ajax via Flash, such as 
http://maxpert.tumblr.com/post/133630525/mootools-cross-domain-ajax-requests , 
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

Reply via email to