How to insert form from a XML-file
I have a generated XML-file:
http://www.decebal.nl/cgi-bin/contact2.cgi?command=getForm&form=contact
In my HTML-page (http://www.decebal.nl/newsite/contact2.shtml) I have:
$(document).ready(function(){
$.post("/cgi-bin/contact2.cgi",
{command: "getForm", form: "contact"},
function(xml){
var form = $("value", xml).text();
$("div#contact_form").replaceWith(form);
}
);
});
and:
<div id = "contact_form">
</div>
But instead of getting the wanted form I get only the following text:
Organisatie Soort organisatie geen Non Profit ZZP MKB Anders Voornaam
Achternaam E-mail Telefoon Adres Postcode Plaats Reden Voor Contact
geen Vraag Opmerking Verzoek Om Informatie Neem Contact Met Mij Op
Omschrijving
What do I need to do to get the form inserted in my webpage?