Forum Moderators: open
This does not work
function ajaxFunction(_formname,_fieldname){
//simple code here to set var xmlHttp;
xmlHttp.onreadystatechange=function() {
if(xmlHttp.readyState==4) {
document._formname._fieldname.value=xmlHttp.responseText;
}
}
//open and send statements here
}
This does work
function ajaxFunction(_formname,_fieldname){
//simple code here to set var xmlHttp;
xmlHttp.onreadystatechange=function() {
if(xmlHttp.readyState==4) {
document.contact_name.name.value=xmlHttp.responseText;
}
}
//open and send statements here
}
Checking of values
When i alert(_formname+' '+_fieldname); i do get 'contact_name name' in a popup.