You can't.  XMLHttpRequest cannot go across domains.  There is a W3C
recommendation on the table to provide this capability (server-side config
will be necessary).

http://www.w3.org/TR/access-control/

You can also use JavaScript/JSON with dynamic script tags to accomplish
cross-site requests, but it's a more limited scenario.  You can find some
resources by googling for ajax dynamic script tag.

-Fred

On Tue, Jul 1, 2008 at 6:13 AM, odelya <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> i am trying to call AJAX with domain address different than mine.
> but i get an exception:
> permission denied to call method XMLHTTPRequest.open
>
> What's the solution?


-- 
Science answers questions; philosophy questions answers.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to