A
André Hänsel
Hi,
I'm using Ajax to load a block of HTML into a page:
coll.appendChild(xmlHttp.responseXML.firstChild)
In the response there is a hidden input field:
<div><input type="hidden" name="partners[]" value="12"/><p
class="name">Foo Bar</p></div>
This input field is not connected to the surrounding form. When I
inspect it in Firebug I see that it did not get a "form" property and
when I submit the form, it is not included.
What is the solution, innerHTML?
Regards,
André
I'm using Ajax to load a block of HTML into a page:
coll.appendChild(xmlHttp.responseXML.firstChild)
In the response there is a hidden input field:
<div><input type="hidden" name="partners[]" value="12"/><p
class="name">Foo Bar</p></div>
This input field is not connected to the surrounding form. When I
inspect it in Firebug I see that it did not get a "form" property and
when I submit the form, it is not included.
What is the solution, innerHTML?
Regards,
André