Hi
I am using the below line to extract server name:
serv=document.forms[0].Server_Name.value;
serv=“http://” + serv;
however getting the error message :
‘document.forms0.Server_Name’ is null or not an object
Thanks,
Sanjay
Hi
I am using the below line to extract server name:
serv=document.forms[0].Server_Name.value;
serv=“http://” + serv;
however getting the error message :
‘document.forms0.Server_Name’ is null or not an object
Thanks,
Sanjay
Subject: Server_Name form field and location object
You should have a Server_Name field in the form and checked the property “Generate HTML for all files”.
Server_name and @servername used in WEB and URLs can give you a lot of headaches, instead use relative url or javascript using:
location.host, location.hostname and location.protocol.
Subject: HTTP_Referer : Is null or not an object
Thanks Johann
It works, i used location.hostname;
however getting the same error message in the below line:
httpPath=document.forms[0].HTTP_Referer.value;
Thanks,
Sanjay
Subject: Generate HTML for all fields
Make sure that you have the field “HTTP_Referer” in your Lotus form with the value HTTP_Referer. And check the form property: “Generate HTML for all fields” on the second tab “Defaults”.
Subject: “strText” is null or not an object
Hi
I have written the below script library function, while onload of the form getting the error message:“strText” is null or not an object
function writeInComboSR(data,fldCombo)
{
fldCombo.length=0
fldCombo.length +=1
fldCombo[fldCombo.length-1].text = “Choose a Person for this Status Report”
for(iCount=1;iCount<data.length;iCount++)
{
fldCombo.length +=1
strText = new Object(); strText=data[iCount]
var pos = strText.indexOf('/O=');
strText = strText.substring(0,pos);
if (strText !=undefined && strText != null)
{
if(strText == document.forms[0].CurrUser.value)
{
fldCombo[fldCombo.length-1].text = trim(strText)
fldCombo[fldCombo.length-1].selected= true
}
else
{
fldCombo[fldCombo.length-1].text = trim(strText)
}
}
}
}
Thanks
Sanjay