JS inserted inputs don’t appear as parameters in controller

I’ve read ‘How to get dynamically created inputs from html form back to,
Posted by David J. (Guest) on 03.06.2006 04:03’ but it doesn’t seem
to work for me.

I’m using client-side javascript to add input tags to a webpage, but
when I submit the page, there are no parameters created for the input
fields, when it is entering the controller???

The code in the .js file:

function addBmw(){
cnt = $(‘bmws’).select(‘div[id^=bmw]’).size();
bmw = $F(‘sel_bmw’).split(’|’);
bmw_line = ‘

’;
bmw_line += ’ delete';
bmw_line += ‘’;
bmw_line += ’ ’ +
bmw[1] + ‘’;
bmw_line += ‘
’;
Element.insert(‘bmws’, {bottom: bmw_line});
}
function delBmw(bmw_id){
Element.remove(‘bmw’ + bmw_id)
}

This works fine on the page, but no parameters received in the
controller ……
Someone knows an answer? (or is it just working as designed?)

TIA, Adrie

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs