I'm curious as to whether it's possible to create a Form object and
populate it with form element objects, strictly in Javascript, without
the need to apply the form to a document.
Essentially, I want to do this:
tmpFormObj = new Form();
tmpFormObj.targ et = document.locati on; // For example.
tmpFormObj.meth od = "POST";
tmpElementObj = new Input();
tmpElementObj.t ype = "text";
tmpElementObj.v alue = "HELLO WORLD";
.... but I'm not sure whether it's possible to insert the Element object
into the Form object. Furthermore, my Javascript seems to terminate at
the 'new Form()' statement. Is this even possible?
TIA,
- skubik.
populate it with form element objects, strictly in Javascript, without
the need to apply the form to a document.
Essentially, I want to do this:
tmpFormObj = new Form();
tmpFormObj.targ et = document.locati on; // For example.
tmpFormObj.meth od = "POST";
tmpElementObj = new Input();
tmpElementObj.t ype = "text";
tmpElementObj.v alue = "HELLO WORLD";
.... but I'm not sure whether it's possible to insert the Element object
into the Form object. Furthermore, my Javascript seems to terminate at
the 'new Form()' statement. Is this even possible?
TIA,
- skubik.
Comment