Hi Forum, I have been using link_to_remote for other pages within my Rails environment with no problem. Right now I need to add a link to an external webpage and can''t seem to get the syntax right. I''m trying to do something like this: <%= link_to_remote("Click Here for External Link, :update => "displaydiv", :url => {:action => ''http://www.ruby-forum.com'' }) %> <div id ="displaydiv"> </div> any and all help is greatly appreciated jackster -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 4 Feb 2008, at 17:53, jackster the jackle wrote:> <%= link_to_remote("Click Here for External Link, > :update => "displaydiv", > :url => {:action => ''http://www.ruby-forum.com'' }) %> > > <div id ="displaydiv"> > </div>the same origin policy prohibits you from making ajax calls to domains other than the one from which your page originated. There are some clever tricks you can play to get round this (eg http://www.ibm.com/developerworks/library/x-ajaxsecurity.html) Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---