Displaying 1 result from an estimated 1 matches for "trashcan_empty".
2006 Jun 03
12
How to get dynamically created inputs from html form back to rails app
...setAttribute("id","delete_"+table.rows.length);
btn.setAttribute ("type","button");
btn.setAttribute ("onClick","deleteAnswer(this)");
node = document.createElement("img");
node.setAttribute ("src","/images/trashcan_empty.png");
btn.appendChild(node);
data.appendChild(btn);
row.appendChild(data);
body.appendChild(row);
}
The equivalent RHTML fragment that builds the table from previosly
stored data is:
<%
answers = Answers.find (:all, :conditions => "parent_id = " +
@questio...