# Noob Question - Javascript problem on Firefox

**URL:** <https://www.ruby-forum.com/t/noob-question-javascript-problem-on-firefox/129587>\
**Category:** Rails\
**Created:** [February 19, 2008, 10:07pm UTC](https://www.ruby-forum.com/t/noob-question-javascript-problem-on-firefox/129587 "2008-02-19T22:07:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shendric](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@shendric](https://www.ruby-forum.com/u/shendric)\
**Post date:** [February 19, 2008, 10:07pm UTC](https://www.ruby-forum.com/t/noob-question-javascript-problem-on-firefox/129587/1 "2008-02-19T22:07:01Z")

</div>

Hello everyone,

What I’m trying to accomplish is simply post a form using  
form\_remote\_tag and use

:complete =\> “alert(DONE!’’)”

to indicate succesfull post. I do not want to render a new page or  
update any part of the page at all. Just a simple javascript alert.  
While I have something working on IE, I just can’t seem to get it to  
work on Firefox. Any ideas?

p.s. I can post some code once I figure out how to add markup for code.  
Can you help me with that as well?

Selim

---

<div class="post-metadata">

**Author:** ![shendric](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@shendric](https://www.ruby-forum.com/u/shendric)\
**Post date:** [February 20, 2008, 11:51am UTC](https://www.ruby-forum.com/t/noob-question-javascript-problem-on-firefox/129587/2 "2008-02-20T11:51:55Z")

</div>

On 19 Feb 2008, at 21:07, Selim Hendrickson wrote:

> Hello everyone,
> 
> What I’m trying to accomplish is simply post a form using  
> form\_remote\_tag and use
> 
> :complete =\> “alert(DONE!’’)”

Is that actually the code you’ve got? it should of course be  
alert(‘DONE!’)

> to indicate succesfull post. I do not want to render a new page or  
> update any part of the page at all. Just a simple javascript alert.  
> While I have something working on IE, I just can’t seem to get it to  
> work on Firefox. Any ideas?
> 
> p.s. I can post some code once I figure out how to add markup for  
> code.  
> Can you help me with that as well?

ruby-forum just mirrors a mailing list - no fancy markup.

---

<div class="post-metadata">

**Author:** ![shendric](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@shendric](https://www.ruby-forum.com/u/shendric)\
**Post date:** [February 20, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/noob-question-javascript-problem-on-firefox/129587/3 "2008-02-20T16:18:34Z")

</div>

Hello Frederick,

First of all thanks for trying to help out. That’s actually a typo on my  
side but that was not the problem. Actually I solved the problem later.  
It was just a previous javascript that hindered the correct execution.

Thanks anyway…

Frederick C. wrote:

> On 19 Feb 2008, at 21:07, Selim Hendrickson wrote:
> 
> > Hello everyone,
> > 
> > What I’m trying to accomplish is simply post a form using  
> > form\_remote\_tag and use
> > 
> > :complete =\> “alert(DONE!’’)”
> 
> Is that actually the code you’ve got? it should of course be  
> alert(‘DONE!’)
> 
> > to indicate succesfull post. I do not want to render a new page or  
> > update any part of the page at all. Just a simple javascript alert.  
> > While I have something working on IE, I just can’t seem to get it to  
> > work on Firefox. Any ideas?
> > 
> > p.s. I can post some code once I figure out how to add markup for  
> > code.  
> > Can you help me with that as well?
> 
> ruby-forum just mirrors a mailing list - no fancy markup.
