# My Ajax form doen't work within a table. Any idea?

**URL:** <https://www.ruby-forum.com/t/my-ajax-form-doent-work-within-a-table-any-idea/169529>\
**Category:** Rails\
**Created:** [June 4, 2009, 9:48pm UTC](https://www.ruby-forum.com/t/my-ajax-form-doent-work-within-a-table-any-idea/169529 "2009-06-04T21:48:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![liyu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ba9def/32.png) [@liyu](https://www.ruby-forum.com/u/liyu)\
**Post date:** [June 4, 2009, 9:48pm UTC](https://www.ruby-forum.com/t/my-ajax-form-doent-work-within-a-table-any-idea/169529/1 "2009-06-04T21:48:35Z")

</div>

Somehow, my ajax form was working perfect without any format. After I  
put it into a pretty looking table, added

, it did not  
work. It works with , but not .

Anyone has any idea?

Thanks,

---

<div class="post-metadata">

**Author:** ![liyu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ba9def/32.png) [@liyu](https://www.ruby-forum.com/u/liyu)\
**Post date:** [June 5, 2009, 10:30am UTC](https://www.ruby-forum.com/t/my-ajax-form-doent-work-within-a-table-any-idea/169529/2 "2009-06-05T10:30:24Z")

</div>

Form tag must be before

 tag or inside 

| tag otherwise it will  
not  
work.

- Sandip

On Fri, Jun 5, 2009 at 2:27 AM, Colin L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> You have not shown the view code but I suspect you may have attempted
> 
> >

–  
Ruby on Rails Developer

> **[Blogs - Neuigkeiten - Artikel - Webseiten - Medien](https://www.sosblog.com/)**
>
> Auf SOSblog geht es um aktuelle Blogs, Neuigkeiten, Artikel, Webseiten und Medien. Wir bringen interessante neue Webseiten aus den Tiefen des Webs.

> **[Judul Situs](https://funonrails.wordpress.com/)**
>
> “Cinta tidak mengenal batas. Cinta mampu melewati rintangan, melompati pagar, menembus dinding untuk mencapai tujuannya dengan penuh harapan.” — Maya Angelou

> **[Josh Software | Custom Software Development Services & Solutions](https://joshsoftware.com/)**
>
> JoshSoftware offers custom software development Services & Solution that provides enterprise, software development services for web & mobile.

 |

---

<div class="post-metadata">

**Author:** ![liyu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ba9def/32.png) [@liyu](https://www.ruby-forum.com/u/liyu)\
**Post date:** [June 4, 2009, 10:58pm UTC](https://www.ruby-forum.com/t/my-ajax-form-doent-work-within-a-table-any-idea/169529/3 "2009-06-04T22:58:37Z")

</div>

2009/6/4 suki [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Somehow, my ajax form was working perfect without any format. After I  
> put it into a pretty looking table, added
> 
> , it did not  
> work. It works with , but not .
> 
> Anyone has any idea?
> 
> You have not shown the view code but I suspect you may have attempted  
> to have something like
> 
> | ... |
> 
> Unfortunately this is not valid html, a form cannot span a row or a  
> number of cells, though you may find it works in some browsers.
> 
> Colin
