# Partials in innerHTML?

**URL:** <https://www.ruby-forum.com/t/partials-in-innerhtml/174510>\
**Category:** Rails\
**Created:** [August 27, 2009, 9:59pm UTC](https://www.ruby-forum.com/t/partials-in-innerhtml/174510 "2009-08-27T21:59:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RVince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/4491bb/32.png) [@RVince](https://www.ruby-forum.com/u/RVince)\
**Post date:** [August 27, 2009, 9:59pm UTC](https://www.ruby-forum.com/t/partials-in-innerhtml/174510/1 "2009-08-27T21:59:18Z")

</div>

I have a set of javascript functions that are reading json data  
periodically to create innerHTML in a view.

Within that innerHTML, I need to put form(s) based on the structure  
and content of a row in a table. I am thinking I will just have to  
somehow hard-code this in html. Perhaps there is a better way?

I’m hoping someone here has a suggestion…I’m thinking maybe  
partials (?) but the entire innerhtml is exactly that, just pure html.  
Surely there has to be a way to accomodate this. Thanks Rvince
