Link_to_remote for external URL

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’ }) %>

any and all help is greatly appreciated

jackster

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’ }) %>

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
IBM Developer)

Fred