Noob Question - Javascript problem on Firefox

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

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.

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 Cheung wrote: