With JS inserted input-tags are not passes as parameters to

I use this:

function addBmw(){
tel = $(‘bmws’).select(‘div[id^=bmw]’).size(); // for a unique id
bmw = $F(‘sel_bmw’).split(’|’); // selected bmw => 54|Valery
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)
}

With this client-side javascript I 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???

Someone knows an answer? (or is it just working as designed?)

TIA, Adrie

On 24 Mar 2008, at 19:50, Adrie D. wrote:

Are your inserted html tags actually inserted in between the
tags ?

Frederick C. wrote:

On 24 Mar 2008, at 19:50, Adrie D. wrote:

Are your inserted html tags actually inserted in between the
tags ?

Yes, sure they are!

Thanks for the reply, I’m really stuck with this problem, I tried it
without JS, but with a partial, but with the same result: newly added
inputs are NOT returned to my controller!!!

Someone else has a clue?
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