Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

HELP PLZ - ASP in Frameset

Posted 28 Dec 2004 00:11:00
1
has voted
28 Dec 2004 00:11:00 world byte posted:
Noob here!

I wonder if is possible to use one frameset and one of the frames be a asp, i've searching for this but i can't find anything.

What a really want is to one of the frames be showing how many users are online. I'm using VBScript.

Thank You

Replies

Replied 28 Dec 2004 01:32:08
28 Dec 2004 01:32:08 Rene Bandsma replied:
Sure that is possible. With the global.asa file you can track how many visitors are on-line on your site. But a disadvantage of frames is that you often only renew your 'mainFrame'. And when you usertracking is in e.g. a 'rightFrame' the counts are not updated.
Replied 28 Dec 2004 21:56:30
28 Dec 2004 21:56:30 world byte replied:
I think I'm too noob to understang how it works.
The global.asa I understand, but I can´t figure out why to put the asp in the frameset.
When see the asp file without the frameset everything is OK, when it is in a frameset , it simply shows the code. Here are the 2 files hope you can help.

FRAMESET.ASP
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<frameset rows="*" cols="155,*" frameborder="NO" border="0" framespacing="0">
<frame src="left.htm" name="leftFrame" scrolling="NO" noresize>
<frameset rows="110,*" cols="*" framespacing="0" frameborder="NO" border="0">
<frame src="top.asp" name="topFrame" scrolling="NO" noresize>
<frame src="main.htm" name="mainFrame">
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>


TOP.ASP
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-image: url(images/top.jpg);
background-repeat: no-repeat;
}
-->
</style></head>

<body>
<%= Application("ActiveUsers" %>
</body>
</html>

Thanks in advance

Reply to this topic