# How can I use form\_remote\_tag to go to a different host?

**URL:** <https://www.ruby-forum.com/t/how-can-i-use-form-remote-tag-to-go-to-a-different-host/122856>\
**Category:** Rails\
**Created:** [December 12, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/how-can-i-use-form-remote-tag-to-go-to-a-different-host/122856 "2007-12-12T18:58:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 12, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/how-can-i-use-form-remote-tag-to-go-to-a-different-host/122856/1 "2007-12-12T18:58:16Z")

</div>

Here’s sort of what I am trying to do if it’s possible:

We have a server that uses TCL and can’t do any ajax.

What I did was wrote a simple Rails app that uses form\_remote\_tag to  
get some text on a post and then  
displays back some text into a div via ajax and a partial render.

I wanted to take all the html, javascript, and ajax calls that the  
Rails template creates by just sourcing the page and copying all of it  
and then pasting it into the page generated by the TCL server. Then  
changing it slightly so that the form submits to the Rails server and  
the Rails server renders the ajax back.

Is there a way in form\_remote\_tag to specify a host ? I played around  
with some url\_for but couldn’t get it to work and was unable to find  
any such thing doing google searches

I wasn’t sure if this would work at all, but it seemed like initially  
I did have something working, but later when I tried it again it  
didn’t work so I am confused a bit

I include all the default rails java script files and I change my form  
by adding the rails-server part to look like this but it doesn’t work:

Search
