Dbmier LED Artcraft Tracing Light Pad Light Box Light Board Light Table- A4

PHP Tech Blog

Dbmier LED Artcraft Tracing Light Pad Light Box Light Board Light Table- A4

留言簿(5)

Links

My Favorites

推荐技术文章

阅读排行榜

评论排行榜

Problem with dynamicaly adding a hidden form element. IE vs Firefox

I am trying to get a form to dynamicaly add hidden elements. Below is the
function I've created, basicaly it loops thru an array and attempts to add
those values to a newly created hidden input field which it then appends to
the form. I works in IE, but in NN7 nothing is passed.

function processAssortment(){
// get the form Element
var formElement=document.getElementById("candyBoxForm" );

//loop thru the candy box contents, add them to the form
for(var x=0;x<CandyBox.size;x++){
var stringNewEle = '<input type="hidden" name="'+'name_'+x+'"
value="'+CandyBox.BoxContents[x].id+'" id='+x+'>'
newField=document.createElement(stringNewEle);
formElement.appendChild(newField);
}

document.assortmentForm.submit();

}

Thank you
brooks

posted on 2009-11-17 10:04 haix 阅读(311) 评论(0)  编辑 收藏 引用 网摘


只有注册用户登录后才能发表评论。
网站导航:
Dbmier LED Artcraft Tracing Light Pad Light Box Light Board Light Table- A4