Pretty new to classic ASP so I apologize if I use the wrong technical words..
Here is the code I have:
some code...
The issue that I'm having is that strTestURL is undefined as it's between the <% %> section. So how do I include the <a> tag in the <% %> so strTestURL is interpreted?
Thanks.
Here is the code I have:
Code:
function getHelpUrl(strHelpURL)
{
getHelpUrl = GetDictValue(Application("dictHelpPages"), strHelpURL);
return (getHelpUrl);
}
Code:
<% dim strURL: strURL = Request.ServerVariables("PATH_INFO")
dim iLength: iLength = instr(2, strURL, "/")
dim strHelpURL: strHelpURL = mid(strURL, iLength + 1, (len(strURL) - 4))
dim strTestURL : strTestURL = GetDictValue(Application("dictHelpPages"), strHelpURL)
%>
<a href="/logoff.asp">Logout</a> | <a target="_blank" href='javascript:getHelpUrl(strTestURL)'>Help</a>
The issue that I'm having is that strTestURL is undefined as it's between the <% %> section. So how do I include the <a> tag in the <% %> so strTestURL is interpreted?
Thanks.