wow, responses in this forum is much faster than other ones i'm in.
actually, what i want to do is to load content on a div layer when called upon by a link (example: if a date in press release is clicked, the full press release will show into a seperate div layer). and as links are clicked, different content will be loaded to that same div layer.
found a script that does this, but when i test it on our website's server it gives me "the page cannot be displayed" and the provider said that asp is supported.
i'm a totally newbie at asp, problem is i'm trying to learn and do the work needed for our site at the same time, so please bare with me
here's the scripts:
declaring the cases
PHP Code:
<%
Select Case p
Case 1: %>
< !--#include file="page3.html"-->
< % Case 2: %>
< !--#include file="page4.html"-->
< % Case 3: %>
< !--#include file="resume.htm"-->
< % Case 4: %>
< !--#include file="photos.htm"-->
< % Case 5: %>
< !--#include file="contact.htm"-->
< % End Select %>
for index.asp
PHP Code:
<%
dim p
p=Request.QueryString("p")
If p= "" Then
p = 1
End If
%>
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="CP_ACP"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ASP: loading external content</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<center>
<table width=500 border=1>
<tr><td><a href="index.asp?p=2">trial</a></td></tr>
<tr><td><!-- #include file="whichpage.asp" --></td></tr>
</table>
</center>
</body>
</html>
to see what i'm talking about go to this link
http://www.amplis.com/amplis_new/trials/index.asp
i tried the html files in the same folder (page3.html) and it shows