Connecting Tech Pros Worldwide Forums | Help | Site Map

Problem: form elements replaced using Ajax and lost from the form.

Newbie
 
Join Date: Jan 2007
Posts: 1
#1: Jan 23 '07
Here is the problem:
part of the form elements is replaced using Ajax. After this new input elements getting lost from the form so nothing can be POSTed through these input fields. But if I try to append these fields to form using appendChild - they are moved from their places in page and placed diectly after <form> tag. And sure they vanish from the browser and can't be edited.
How shall I append these fields to form to not to lose them and POST values through them?

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Jan 23 '07

re: Problem: form elements replaced using Ajax and lost from the form.


Post the code that you have (in code tags please). Have you set the id of the form and are you using that to append the child elements?
Reply


Similar JavaScript / Ajax / DHTML bytes