You could not request ajax to different domain. This rule named SOP 
(Same Origin Policy), and it was mentioned in manual like this: 
"/remember that XHR is usually used on URLs from the same host that 
originated the current page (this is the famous Same Origin Policy, or 
SOP)/".

There are some solutions. You could request to file at your own domain, 
and this file will request to content at target domain. Or, with JSONP.

odelya 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
>   


--~--~---------~--~----~------------~-------~--~----~
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