I am trying to pass a parameter to a popup window, but without any success. Here is my code :
Dim CompanyName
CompanyName = rsLog("Name")
if ((rsLog("BrandDescription") = "PCWB") or _
(rsLog("BrandDescription") = "Equanet Education")) then
Response.Write "<td bgcolor=FFFFFF><font size=2><A HREF=""javascriptopUp('companyequanet.asp', CompanyName)"">" & rsLog("Name")& sitename & "</A></td>"
end if
And the Javascript :
function popUp(URL, CompanyName)
{
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL + "?company=" + CompanyName, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=180,height=30,left = 412,top = 284');");
}
In the status bar, I just get the string 'CompanyName' instead of the value that is assigned to CompanyName. Can somebody help?
Dim CompanyName
CompanyName = rsLog("Name")
if ((rsLog("BrandDescription") = "PCWB") or _
(rsLog("BrandDescription") = "Equanet Education")) then
Response.Write "<td bgcolor=FFFFFF><font size=2><A HREF=""javascriptopUp('companyequanet.asp', CompanyName)"">" & rsLog("Name")& sitename & "</A></td>"
end if
And the Javascript :
function popUp(URL, CompanyName)
{
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL + "?company=" + CompanyName, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=180,height=30,left = 412,top = 284');");
}
In the status bar, I just get the string 'CompanyName' instead of the value that is assigned to CompanyName. Can somebody help?