A
ayende
I've a very strange issue here. I've this JS code:
var hidden = document.createElement('input')
//hidden.type='hidden';
hidden.value = getIdForUser(userTag)
$('assignedUsersInputs').appendChild(hidden);
var i =0;
for(var node = $('assignedUsersInputs').firstChild;node !=null; node =
node.nextSibling)
{
if(node.nodeType != 1) //input
continue;
node.id = 'project.Users['+i+'].Id';
i++;
}
I use it to create a couple of inputs, and then I post to the server,
but the server side can't see those controls.
When I do request.Params.AllKeys, I can't see those values there, but
they exists (enabled, btw) on the client.
This behavior is consistent in both IE and FF, so I think this is
something that I'm doing wrong.
Any ideas?
var hidden = document.createElement('input')
//hidden.type='hidden';
hidden.value = getIdForUser(userTag)
$('assignedUsersInputs').appendChild(hidden);
var i =0;
for(var node = $('assignedUsersInputs').firstChild;node !=null; node =
node.nextSibling)
{
if(node.nodeType != 1) //input
continue;
node.id = 'project.Users['+i+'].Id';
i++;
}
I use it to create a couple of inputs, and then I post to the server,
but the server side can't see those controls.
When I do request.Params.AllKeys, I can't see those values there, but
they exists (enabled, btw) on the client.
This behavior is consistent in both IE and FF, so I think this is
something that I'm doing wrong.
Any ideas?