HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Base URL Issue › Re: Re: Base URL Issue
February 10, 2010 at 15:11
#27835
Actually,
This code is working quite well. It is executed on the client browser prior to getting the copy of the HTML. I refactored the code and am reposting it :
function processFormData(oForm) {
var e, i = 0;
while (e = oForm.elements[i++]) {
if (e.type == ‘checkbox’ || e.type == ‘radio’) {
if (e.checked == true) {
e.defaultChecked = true;
} else {
e.defaultChecked = false;
}
}
if (e.type == ‘select’) { // Still needs to be done
}
}
}