ASP og WAP
Hvorfor virker dette ikke?<% Response.ContentType = "text/vnd.wap.wml"%>
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<wml>
<card id="menu" title="Menu'en på XGP:DK" newcontext="true">
<p>
<b>Menu</b><br/>
<a href="#ringetoner">Ringetoner</a><br/>
<a href="#billeder">Billeder</a>
</p>
</card>
<card id="ringetoner" title="Ringetoner på XGP:DK" newcontext="true">
<p>
<b>Ringetoner</b><br/>
<%
strPathInfo = Request.ServerVariables("PATH_INFO")
strPhysicalPath = Server.MapPath("/Wap/Ringetoner/)
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile(strPhysicalPath)
Set objFolder = objFile.ParentFolder
Set objFolderContents = objFolder.Files
For Each objFileItem in objFolderContents
If Not Right(objFileItem.Name,3) = "asp" Then
Response.write "<a href="
Response.Write(objFileItem.Name)
Response.write ">"
Response.Write(objFileItem.Name & "<br>")
Response.write "</a>"
End If
Next
%>
</p>
</card>
<card id="billeder" title="Billeder på XGP:DK" newcontext="true">
<p>
<b>Billeder</b><br/>
<%
strPathInfo = Request.ServerVariables("PATH_INFO")
strPhysicalPath = Server.MapPath("/Wap/Billeder/)
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile(strPhysicalPath)
Set objFolder = objFile.ParentFolder
Set objFolderContents = objFolder.Files
For Each objFileItem in objFolderContents
If Not Right(objFileItem.Name,3) = "asp" Then
Response.write "<a href="
Response.Write(objFileItem.Name)
Response.write ">"
Response.Write(objFileItem.Name & "<br>")
Response.write "</a>"
End If
Next
%>
</p>
</card>
</wml>
Får bare "Databærer ikke tilgænelig!"
