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

<div id ="displaydiv">
</div>

any and all help is greatly appreciated

jackster

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