# Link\_to\_remote not working in FF 2.0

**URL:** <https://www.ruby-forum.com/t/link-to-remote-not-working-in-ff-2-0/107541>\
**Category:** Rails\
**Created:** [June 22, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/link-to-remote-not-working-in-ff-2-0/107541 "2007-06-22T20:25:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JolSSSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b19c9b/32.png) [@JolSSSS](https://www.ruby-forum.com/u/JolSSSS)\
**Post date:** [June 22, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/link-to-remote-not-working-in-ff-2-0/107541/1 "2007-06-22T20:25:20Z")

</div>

Hi,

I build in a textarea where I can write markdown code according to  
this article [http://www.railsdiary.com/diary/ajax\_markdown\_preview](http://www.railsdiary.com/diary/ajax_markdown_preview).

It works fine in Safari but for some reason it doesn’t work in  
Firefox…

This is my code:

## View

\<%= text\_area “post”, :content -%\>  
\<%= link\_to\_remote “preview”,  
{:url =\> { :action =\> “preview”, :controller =\> “posts” },  
:update =\> “preview”,  
:with =\> “‘content=’ +  
escape(getElementById(‘post\_content’).value)”},  
{ :class =\> “preview” } %\>

## Controller (posts)

def preview  
@content = params[:content]  
render :partial =\> ‘preview’  
end

Any suggestions would be superb!!

Thnx…!

---

<div class="post-metadata">

**Author:** ![JolSSSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b19c9b/32.png) [@JolSSSS](https://www.ruby-forum.com/u/JolSSSS)\
**Post date:** [June 22, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/link-to-remote-not-working-in-ff-2-0/107541/2 "2007-06-22T20:41:21Z")

</div>

I think I found the problem! I also used the Rico framework to round  
corners and when I removed the rico reference the preview link worked  
just fine…

– Jelle
