On Jun 4, 2007, at 7:11 PM, Massimiliano Marini wrote:

ajax can't work cross domain by design for security reasons.

There's no other method, workaround or something else?

You could run a proxy script in server where Javascript is downloaded from. Simple proxy.php can be written with one line of PHP.

<?php readfile($_GET['url']); ?>

Then instead of

$("#remote").load("http://www.google.com/";)

you would do

$("#remote").load("http://www.example.com/proxy.php?url=http:// www.google.com/");

--
Mika Tuupola                      http://www.appelsiini.net/~tuupola/



Reply via email to