# Bug?! remote\_form\_for does not provide ajax

**URL:** <https://www.ruby-forum.com/t/bug-remote-form-for-does-not-provide-ajax/138933>\
**Category:** Rails\
**Created:** [May 29, 2008, 3:13am UTC](https://www.ruby-forum.com/t/bug-remote-form-for-does-not-provide-ajax/138933 "2008-05-29T03:13:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![artchrst](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Post date:** [May 29, 2008, 3:13am UTC](https://www.ruby-forum.com/t/bug-remote-form-for-does-not-provide-ajax/138933/1 "2008-05-29T03:13:50Z")

</div>

Hi guys,

I’ve downloaded the liveValidation JavaScript from  
[www.livevalidation.com](http://www.livevalidation.com).

I found that the remote\_form\_for does not work with the js. The  
necessary AJAX code in the “onsubmit” part of the tag is missing  
**Sometimes**

yes, it’s sometimes:

1.a save button onclick=“submit button.click” - ajax ok mostly  
1.b save button onclick=“submit button.click” - ajax failed sometimes  
unless I using prototype to observe some other control (e.g.  
$(‘othercontrol’).observer(‘click’, test))  
2. save button onclick=“form.submit” - ajax work but nothing can be Get.

All in all, the remote\_form\_for is probably affected by the validation’s  
JS event.

Is it a known bug or what cannot be done together with the  
remote\_form\_for?

Thanks much  
Arthur
