06-04-2003 03:22 AM - edited 03-13-2019 12:11 AM
hi,
i have some large ip phone services and want to have 1 connection.asp file where all my links, ip addresses etc are stored, because i don't want to change every script if an address changed!
for example:
%@ language="vbscript"%>
<%
Response.Buffer = true
Response.ContentType = "text/xml"
<!-- Abfragen der Server-IP-Adresse -->
sname=request.ServerVariables("SERVER_NAME")
dim link
link = "http://172.16.63.15/wwwroot/ASP/Test3/connection.asp"
%>
<CiscoIPPhoneInput>
<Title>Einloggen</Title>
<URL><%link%></URL>
<InputItem>
<DisplayName>User</DisplayName>
<QueryStringParam>user</QueryStringParam>
<DefaultValue></DefaultValue>
<InputFlags>A</InputFlags>
</InputItem>
<InputItem>
<DisplayName>Passwort</DisplayName>
<QueryStringParam>pwd</QueryStringParam>
<DefaultValue></DefaultValue>
<InputFlags>A</InputFlags>
</InputItem>
</CiscoIPPhoneInput>
in the variable "link" i want to store my link, but it doesen't work! i'm not sure if it's an btxml- or an vbscript mistake? has anyone an idea?
thx in advance, jochen
06-04-2003 06:32 AM
Try changing this line:
to this:
Note the added = character so that the variable is output.
Try that and see if it works a bit better. Perhaps you could store the links in an include file, and all services could include that file, if that works better.
06-04-2003 06:42 AM
thx, it works!
that's why i love programming, just little things costs much of time...
jr
i did it also with the include file --> perfect ;-)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide